Skip to content

Commit ceaff43

Browse files
committed
Address non-null assertion
1 parent ab7ceb8 commit ceaff43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/@glimmer/validator/lib/collections

packages/@glimmer/validator/lib/collections/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class TrackedMap<K = unknown, V = unknown> implements Map<K, V> {
8585
return {
8686
next() {
8787
let { value, done } = iterator.next();
88-
return { value: done ? (undefined as V) : value![1], done };
88+
return { value: done ? (undefined as V) : value?.[1], done };
8989
},
9090
[Symbol.iterator]() {
9191
return this;

0 commit comments

Comments
 (0)