File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -295,11 +295,6 @@ export abstract class BaseClient<O extends OptionsV7> implements ClientLike<O> {
295
295
} ) ;
296
296
}
297
297
298
- /** Determines whether this SDK is enabled and a valid Dsn is present. */
299
- protected _isEnabled ( ) : boolean {
300
- return this . options . enabled !== false && this . _dsn !== undefined ;
301
- }
302
-
303
298
/**
304
299
* Adds common information to events.
305
300
*
@@ -506,7 +501,7 @@ export abstract class BaseClient<O extends OptionsV7> implements ClientLike<O> {
506
501
// eslint-disable-next-line @typescript-eslint/unbound-method
507
502
const { beforeSend, sampleRate } = this . options ;
508
503
509
- if ( ! this . _isEnabled ( ) ) {
504
+ if ( this . options . enabled === false ) {
510
505
return SyncPromise . reject ( new SentryError ( 'SDK not enabled, will not send event.' ) ) ;
511
506
}
512
507
You can’t perform that action at this time.
0 commit comments