Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit 17a0c0d

Browse files
Pitrossteffnay
andauthored
fix: call rowQueue insert callback only if present (#1128)
Co-authored-by: Steffany Brown <[email protected]>
1 parent d607e5a commit 17a0c0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rowQueue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,9 @@ export class RowQueue {
194194
} else {
195195
callbacks.forEach(callback => callback!(err, resp));
196196
this.stream.emit('response', resp);
197-
cb!(err, resp);
197+
cb?.(err, resp);
198198
}
199-
cb!(err, resp);
199+
cb?.(err, resp);
200200
}
201201
);
202202
}

0 commit comments

Comments
 (0)