Skip to content

Commit ff7a388

Browse files
committed
Adjust type
1 parent 8aac044 commit ff7a388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
619619
function _ensureBeforeSendRv(rv: PromiseLike<Event | null> | Event | null): PromiseLike<Event | null> | Event | null {
620620
const nullErr = '`beforeSend` method has to return `null` or a valid event.';
621621
if (isThenable(rv)) {
622-
return (rv as PromiseLike<Event | null>).then(
622+
return rv.then(
623623
event => {
624624
if (!(isPlainObject(event) || event === null)) {
625625
throw new SentryError(nullErr);

0 commit comments

Comments
 (0)