Skip to content

Commit 6f95077

Browse files
committed
Neaten
1 parent 22bfbc0 commit 6f95077

File tree

1 file changed

+2
-1
lines changed
  • grafast/dataplan-pg/src/adaptors

1 file changed

+2
-1
lines changed

grafast/dataplan-pg/src/adaptors/pg.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ export class PgSubscriber<
539539
}
540540
if (queue.length > 0) {
541541
const promises = queue.splice(0, queue.length);
542-
promises.forEach((p) => p.resolve(finished!));
542+
const f = finished; // Appease TypeScript
543+
promises.forEach((p) => p.resolve(f));
543544
}
544545
eventEmitter.removeListener(topic as string, recv);
545546
// Every code path above this has to go through a `yield` and thus

0 commit comments

Comments
 (0)