Skip to content

Commit

Permalink
[js] remove technically unrequired null check in HaxeKeyValueIterator…
Browse files Browse the repository at this point in the history
… for better inlining
  • Loading branch information
Apprentice-Alchemist committed Jun 19, 2024
1 parent 3b016b3 commit 619ab5d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions std/js/lib/HaxeKeyValueIterator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ class HaxeKeyValueIterator<K, V> {
public inline function next():{key:K, value:V} {
var v = lastStep.value;
lastStep = jsIterator.next();
if (v == null) {
return null;
} else {
return {key: v.key, value: v.value};
}
return {key: v.key, value: v.value};
}

public static inline function keyValueIterator<K, V>(jsIterator:js.lib.Iterator<KeyValue<K, V>>) {
Expand Down

0 comments on commit 619ab5d

Please sign in to comment.