Skip to content

Commit 45996ed

Browse files
committed
return promise
1 parent 3fab0b2 commit 45996ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/replay/src/integration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
207207
* Currently, this needs to be manually called (e.g. for tests). Sentry SDK
208208
* does not support a teardown
209209
*/
210-
public stop(): Promise<void> | void {
210+
public stop(): Promise<void> {
211211
if (!this._replay) {
212-
return;
212+
return Promise.resolve();
213213
}
214214

215215
return this._replay.stop();
@@ -218,9 +218,9 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
218218
/**
219219
* Immediately send all pending events.
220220
*/
221-
public flush(): Promise<void> | void {
221+
public flush(): Promise<void> {
222222
if (!this._replay || !this._replay.isEnabled()) {
223-
return;
223+
return Promise.resolve();
224224
}
225225

226226
return this._replay.flushImmediate();

0 commit comments

Comments
 (0)