Skip to content

Commit

Permalink
Fixed sync problems with late Promises, pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Boës committed Oct 16, 2016
1 parent af60a2a commit e88c0ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ var Generator = function (config) {
.all(promises)
.then(function() {
console.log("Wrote "+promises.length+" files for '"+title+"'");
return resolve(promises.length); // TODO: Something is wrong here
return resolve(promises.length);
})
.catch(reject)
;
Expand Down

0 comments on commit e88c0ff

Please sign in to comment.