Skip to content

Commit 1acd79a

Browse files
committed
Promisifying output
1 parent f8e93af commit 1acd79a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

generate-report.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
outputDir = process.argv[3],
77
output = require('./utils/output')
88
;
9-
10-
crawlComplexity(srcDir, function(err, report){ if(!err) output(report, outputDir); });
9+
10+
crawlComplexity(srcDir).then(function(report){
11+
output(report, outputDir);
12+
}).caught(console.log);
1113

1214

1315

0 commit comments

Comments
 (0)