Skip to content

Commit

Permalink
Promisifying output
Browse files Browse the repository at this point in the history
  • Loading branch information
slyg committed Jan 21, 2014
1 parent f8e93af commit 1acd79a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generate-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
outputDir = process.argv[3],
output = require('./utils/output')
;

crawlComplexity(srcDir, function(err, report){ if(!err) output(report, outputDir); });

crawlComplexity(srcDir).then(function(report){
output(report, outputDir);
}).caught(console.log);



Expand Down

0 comments on commit 1acd79a

Please sign in to comment.