Skip to content

Commit b5166dd

Browse files
committed
fix code coverage
1 parent e8f1f9e commit b5166dd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/execution/publisher.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,9 @@ export class Publisher<TSource extends Source, TIncremental, TPayload> {
123123

124124
const parentContext = source.parentContext;
125125
// TODO: parentContext can never be undefined, but TS doesn't know that
126-
if (parentContext === undefined) {
127-
return;
128-
}
129-
const children = this.waitingByParent.get(parentContext);
126+
const children = this.waitingByParent.get(parentContext!);
130127
// TODO: children can never be undefined, but TS doesn't know that
131-
if (children === undefined) {
132-
return;
133-
}
134-
children.delete(source);
128+
children!.delete(source);
135129
});
136130

137131
for (const iterator of iterators) {

0 commit comments

Comments
 (0)