Skip to content

Commit a0f036a

Browse files
author
Luca Forstner
committed
maybe not crash accidentally because of hack :)
1 parent 4db48f4 commit a0f036a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/integrations/http/SentryHttpInstrumentationBeforeOtel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class SentryHttpInstrumentationBeforeOtel extends InstrumentationBase {
7070
function patchResponseToFlushOnServerlessPlatforms(res: http.OutgoingMessage): void {
7171
// Freely extend this function with other platforms if necessary
7272
if (process.env.VERCEL) {
73-
let markOnEndDone: () => void;
73+
let markOnEndDone = (): void => undefined;
7474
const onEndDonePromise = new Promise<void>(res => {
7575
markOnEndDone = res;
7676
});

0 commit comments

Comments
 (0)