Skip to content

Commit a7ccf8a

Browse files
committed
Code style
1 parent 4243b3a commit a7ccf8a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

JavaScript/4-async.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const memoizeAsync = (lib, fnName) => {
1717
console.log('cached: ' + record);
1818
if (record) {
1919
console.log('from cache');
20-
return cb(record.err, record.data);
20+
cb(record.err, record.data);
21+
return;
2122
}
2223
fn(...args, (err, data) => {
2324
console.log('from file');

0 commit comments

Comments
 (0)