File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
redisinsight/api/src/modules/browser/services/keys-business/scanner/strategies Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ export abstract class AbstractStrategy implements IScannerStrategy {
69
69
new Command ( BrowserToolKeysCommands . Ttl , [ key ] , { replyEncoding : 'utf8' } ) ,
70
70
) as number ;
71
71
} catch ( e ) {
72
- // ignore error
72
+ ttl = null ;
73
73
}
74
74
75
75
try {
@@ -79,15 +79,15 @@ export abstract class AbstractStrategy implements IScannerStrategy {
79
79
) ,
80
80
) as number ;
81
81
} catch ( e ) {
82
- // ignore error
82
+ size = null ;
83
83
}
84
84
85
85
try {
86
86
type = filterType || await client . sendCommand (
87
87
new Command ( BrowserToolKeysCommands . Type , [ key ] , { replyEncoding : 'utf8' } ) ,
88
88
) as string ;
89
89
} catch ( e ) {
90
- // ignore error
90
+ type = null ;
91
91
}
92
92
93
93
return {
@@ -128,7 +128,7 @@ export abstract class AbstractStrategy implements IScannerStrategy {
128
128
if ( transactionError ) {
129
129
throw transactionError ;
130
130
} else {
131
- return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 1 ] ) ;
131
+ return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 0 ] ? null : item [ 1 ] ) ;
132
132
}
133
133
}
134
134
@@ -146,7 +146,7 @@ export abstract class AbstractStrategy implements IScannerStrategy {
146
146
if ( transactionError ) {
147
147
throw transactionError ;
148
148
} else {
149
- return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 1 ] ) ;
149
+ return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 0 ] ? null : item [ 1 ] ) ;
150
150
}
151
151
}
152
152
@@ -171,7 +171,7 @@ export abstract class AbstractStrategy implements IScannerStrategy {
171
171
if ( transactionError ) {
172
172
throw transactionError ;
173
173
} else {
174
- return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 1 ] ) ;
174
+ return transactionResults . map ( ( item : [ ReplyError , any ] ) => item [ 0 ] ? null : item [ 1 ] ) ;
175
175
}
176
176
}
177
177
}
You can’t perform that action at this time.
0 commit comments