File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class ExtraErrorData implements Integration {
37
37
* @inheritDoc
38
38
*/
39
39
public setupOnce ( addGlobalEventProcessor : ( callback : EventProcessor ) => void , getCurrentHub : ( ) => Hub ) : void {
40
- addGlobalEventProcessor ( ( event : Event , hint ? : EventHint ) => {
40
+ addGlobalEventProcessor ( ( event : Event , hint : EventHint ) => {
41
41
const self = getCurrentHub ( ) . getIntegration ( ExtraErrorData ) ;
42
42
if ( ! self ) {
43
43
return event ;
@@ -49,8 +49,8 @@ export class ExtraErrorData implements Integration {
49
49
/**
50
50
* Attaches extracted information from the Error object to extra field in the Event
51
51
*/
52
- public enhanceEventWithErrorData ( event : Event , hint ? : EventHint ) : Event {
53
- if ( ! hint || ! hint . originalException || ! isError ( hint . originalException ) ) {
52
+ public enhanceEventWithErrorData ( event : Event , hint : EventHint ) : Event {
53
+ if ( ! hint . originalException || ! isError ( hint . originalException ) ) {
54
54
return event ;
55
55
}
56
56
const exceptionName = ( hint . originalException as ExtendedError ) . name || hint . originalException . constructor . name ;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class LinkedErrors implements Integration {
43
43
* @inheritDoc
44
44
*/
45
45
public setupOnce ( ) : void {
46
- addGlobalEventProcessor ( async ( event : Event , hint ? : EventHint ) => {
46
+ addGlobalEventProcessor ( async ( event : Event , hint : EventHint ) => {
47
47
const hub = getCurrentHub ( ) ;
48
48
const self = hub . getIntegration ( LinkedErrors ) ;
49
49
const client = hub . getClient < NodeClient > ( ) ;
@@ -57,8 +57,8 @@ export class LinkedErrors implements Integration {
57
57
/**
58
58
* @inheritDoc
59
59
*/
60
- private _handler ( stackParser : StackParser , event : Event , hint ? : EventHint ) : PromiseLike < Event > {
61
- if ( ! event . exception || ! event . exception . values || ! hint || ! isInstanceOf ( hint . originalException , Error ) ) {
60
+ private _handler ( stackParser : StackParser , event : Event , hint : EventHint ) : PromiseLike < Event > {
61
+ if ( ! event . exception || ! event . exception . values || ! isInstanceOf ( hint . originalException , Error ) ) {
62
62
return resolvedSyncPromise ( event ) ;
63
63
}
64
64
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ import { Event, EventHint } from './event';
8
8
*/
9
9
export interface EventProcessor {
10
10
id ?: string ; // This field can't be named "name" because functions already have this field natively
11
- ( event : Event , hint ? : EventHint ) : PromiseLike < Event | null > | Event | null ;
11
+ ( event : Event , hint : EventHint ) : PromiseLike < Event | null > | Event | null ;
12
12
}
You can’t perform that action at this time.
0 commit comments