Skip to content

Commit 1388dea

Browse files
authored
whoops: tried to over-optimize
1 parent 5d99468 commit 1388dea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/node-sdk/src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export class BucketClient {
220220
};
221221

222222
if ((config.batchOptions?.flushOnExit ?? true) && !this._config.offline) {
223-
triggerOnExit(this.flush);
223+
triggerOnExit(() => this.flush());
224224
}
225225

226226
if (!new URL(this._config.apiBaseUrl).pathname.endsWith("/")) {

0 commit comments

Comments
 (0)