File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments