Skip to content

Commit 6a9945a

Browse files
committed
Remove unnecessary callback definition
1 parent e44f734 commit 6a9945a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/buildSearch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ module.exports = function(outFile, cb) {
5959
// Write the finished results to disk
6060
mkdirp(path.dirname(outFile), function(err) {
6161
if (err) throw err;
62-
if (typeof cb !== 'function') cb = function(){};
6362
fs.writeFile(outFile, JSON.stringify(results, null, ' '), cb);
6463
});
6564
}

0 commit comments

Comments
 (0)