File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
redisinsight/api/src/modules/cloud/auth Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export class CloudAuthService {
73
73
}
74
74
75
75
if (
76
- query ?. error_description ?. indexOf ( 'property ' ) > - 1 &&
76
+ query ?. error_description ?. indexOf ( 'propert ' ) > - 1 &&
77
77
query ?. error_description ?. indexOf ( 'required' ) > - 1 &&
78
78
query ?. error_description ?. indexOf ( 'miss' ) > - 1
79
79
) {
@@ -330,11 +330,10 @@ export class CloudAuthService {
330
330
try {
331
331
if ( ! callback ) {
332
332
this . logger . log ( 'Callback is undefined' ) ;
333
- } else {
334
- callback ( result ) ?. catch ( ( e : Error ) =>
335
- this . logger . error ( 'Async callback failed' , e ) ,
336
- ) ;
337
333
}
334
+ callback ( result ) ?. catch ( ( e : Error ) =>
335
+ this . logger . error ( 'Async callback failed' , e ) ,
336
+ ) ;
338
337
} catch ( e ) {
339
338
this . logger . error ( 'Callback failed' , e ) ;
340
339
}
You can’t perform that action at this time.
0 commit comments