File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/sentry/static/sentry/app Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -88,25 +88,25 @@ export class Client {
88
88
}
89
89
90
90
wrapCallback ( id , func , cleanup ) {
91
- /*eslint consistent-return:0*/
92
- if ( isUndefined ( func ) ) {
93
- return ;
94
- }
95
-
96
91
return ( ...args ) => {
97
92
const req = this . activeRequests [ id ] ;
98
93
if ( cleanup === true ) {
99
94
delete this . activeRequests [ id ] ;
100
95
}
96
+
101
97
if ( req && req . alive ) {
102
98
// Check if API response is a 302 -- means project slug was renamed and user
103
99
// needs to be redirected
104
100
if ( this . hasProjectBeenRenamed ( ...args ) ) {
105
101
return ;
106
102
}
107
103
104
+ if ( isUndefined ( func ) ) {
105
+ return ;
106
+ }
107
+
108
108
// Call success callback
109
- return func . apply ( req , args ) ;
109
+ return func . apply ( req , args ) ; // eslint-disable-line
110
110
}
111
111
} ;
112
112
}
You can’t perform that action at this time.
0 commit comments