File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -112,19 +112,21 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
112
112
*/
113
113
protected constructor ( options : O ) {
114
114
this . _options = options ;
115
+
115
116
if ( options . dsn ) {
116
117
this . _dsn = makeDsn ( options . dsn ) ;
117
- if ( this . _dsn ) {
118
- const url = getEnvelopeEndpointWithUrlEncodedAuth ( this . _dsn , options ) ;
119
- this . _transport = options . transport ( {
120
- recordDroppedEvent : this . recordDroppedEvent . bind ( this ) ,
121
- ...options . transportOptions ,
122
- url,
123
- } ) ;
124
- }
125
118
} else {
126
119
__DEBUG_BUILD__ && logger . warn ( 'No DSN provided, client will not do anything.' ) ;
127
120
}
121
+
122
+ if ( this . _dsn ) {
123
+ const url = getEnvelopeEndpointWithUrlEncodedAuth ( this . _dsn , options ) ;
124
+ this . _transport = options . transport ( {
125
+ recordDroppedEvent : this . recordDroppedEvent . bind ( this ) ,
126
+ ...options . transportOptions ,
127
+ url,
128
+ } ) ;
129
+ }
128
130
}
129
131
130
132
/**
You can’t perform that action at this time.
0 commit comments