Skip to content

Commit 8322b32

Browse files
committed
move mkdirp to promise
1 parent bf98fb2 commit 8322b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/lib/DataGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
// save json file with all demos
185185
var demoDataJsonFile = dataGenerator.config.demoDataJsonFile;
186186
var dirName = path.dirname(demoDataJsonFile);
187-
mkdirp(dirName, function () {
187+
mkdirp(dirName).then(function () {
188188
dataGenerator.saveAsJsonFile(demoDataJsonFile, dataGenerator.getDemos());
189189
done(null);
190190
});

0 commit comments

Comments
 (0)