File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ class SentryPlugin extends plugin_base_1.PluginBase {
152152 if ( uuid ) {
153153 this . Sentry . setUser ( { id : uuid } ) ;
154154 }
155- const scope = this . Sentry . getCurrentScope ? this . Sentry . getCurrentScope ( ) : undefined ;
155+ const scope = this . Sentry . getCurrentScope ?. ( ) ;
156156 if ( scope ) {
157157 scope . addEventProcessor ( ( event , hint ) => {
158158 if ( ! this . isActive ) {
Original file line number Diff line number Diff line change @@ -172,9 +172,9 @@ export default class SentryPlugin extends PluginBase {
172172 this . Sentry . setUser ( { id : uuid } ) ;
173173 }
174174
175- const scope = ( this . Sentry as any ) . getCurrentScope ? this . Sentry . getCurrentScope ( ) : undefined ;
175+ const scope = this . Sentry . getCurrentScope ?. ( ) ;
176176 if ( scope ) {
177- scope . addEventProcessor ( ( event : any , hint : any ) => {
177+ scope . addEventProcessor ( ( event , hint ) => {
178178 if ( ! this . isActive ) {
179179 return ;
180180 }
You can’t perform that action at this time.
0 commit comments