File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,6 @@ import {
15
15
import { getCurrentHub , Hub } from './hub' ;
16
16
import { Scope } from './scope' ;
17
17
18
- /**
19
- * This calls a function on the current hub.
20
- * @param method function to call on hub.
21
- * @param args to pass to function.
22
- */
23
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
- export function callOnHub < T > ( method : string , ...args : any [ ] ) : T {
25
- const hub = getCurrentHub ( ) ;
26
- if ( hub && hub [ method as keyof Hub ] ) {
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
- return ( hub [ method as keyof Hub ] as any ) ( ...args ) ;
29
- }
30
- throw new Error ( `No hub defined or ${ method } was not found on the hub, please open a bug report.` ) ;
31
- }
32
-
33
18
/**
34
19
* Captures an exception event and sends it to Sentry.
35
20
*
You can’t perform that action at this time.
0 commit comments