Skip to content

Commit ffc07f1

Browse files
committed
missing cb && causes promises to fail
1 parent a2e938d commit ffc07f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function redisStore(args) {
216216
}
217217

218218
if (!self.isCacheableValue(value)) {
219-
return cb(new Error('value cannot be ' + value));
219+
return cb && cb(new Error('value cannot be ' + value));
220220
}
221221

222222
options = options || {};

0 commit comments

Comments
 (0)