File tree 2 files changed +14
-6
lines changed
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -163,5 +163,5 @@ export function close(timeout?: number): PromiseLike<boolean> {
163
163
* @returns The result of wrapped function call.
164
164
*/
165
165
export function wrap ( fn : Function ) : any {
166
- return internalWrap ( fn ) ( ) ;
166
+ return internalWrap ( fn ) ( ) ; // tslint:disable-line:no-unsafe-any
167
167
}
Original file line number Diff line number Diff line change @@ -87,7 +87,14 @@ export class InboundFilters implements Integration {
87
87
}
88
88
89
89
try {
90
- return event && event . exception && event . exception . values && event . exception . values [ 0 ] && event . exception . values [ 0 ] . type === 'SentryError' || false ;
90
+ return (
91
+ ( event &&
92
+ event . exception &&
93
+ event . exception . values &&
94
+ event . exception . values [ 0 ] &&
95
+ event . exception . values [ 0 ] . type === 'SentryError' ) ||
96
+ false
97
+ ) ;
91
98
} catch ( _oO ) {
92
99
return false ;
93
100
}
@@ -146,7 +153,7 @@ export class InboundFilters implements Integration {
146
153
}
147
154
if ( event . exception ) {
148
155
try {
149
- const { type = '' , value = '' } = event . exception . values && event . exception . values [ 0 ] || { } ;
156
+ const { type = '' , value = '' } = ( event . exception . values && event . exception . values [ 0 ] ) || { } ;
150
157
return [ `${ value } ` , `${ type } : ${ value } ` ] ;
151
158
} catch ( oO ) {
152
159
logger . error ( `Cannot extract message for event ${ getEventDescription ( event ) } ` ) ;
@@ -161,11 +168,12 @@ export class InboundFilters implements Integration {
161
168
try {
162
169
if ( event . stacktrace ) {
163
170
const frames = event . stacktrace . frames ;
164
- return frames && frames [ frames . length - 1 ] . filename || null ;
171
+ return ( frames && frames [ frames . length - 1 ] . filename ) || null ;
165
172
}
166
173
if ( event . exception ) {
167
- const frames = event . exception . values && event . exception . values [ 0 ] . stacktrace && event . exception . values [ 0 ] . stacktrace . frames ;
168
- return frames && frames [ frames . length - 1 ] . filename || null ;
174
+ const frames =
175
+ event . exception . values && event . exception . values [ 0 ] . stacktrace && event . exception . values [ 0 ] . stacktrace . frames ;
176
+ return ( frames && frames [ frames . length - 1 ] . filename ) || null ;
169
177
}
170
178
return null ;
171
179
} catch ( oO ) {
You can’t perform that action at this time.
0 commit comments