Skip to content

Commit 3abc0bf

Browse files
committed
Merge pull request #68 from milkisevil/patch-1
fix(sample): fix in node clean method
2 parents 99d5e61 + d642e72 commit 3abc0bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/Node.js/flow-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ module.exports = flow = function(temporaryFolder) {
191191

192192
console.log('exist removing ', chunkFilename);
193193
fs.unlink(chunkFilename, function(err) {
194-
if (options.onError) options.onError(err);
194+
if (err && options.onError) options.onError(err);
195195
});
196196

197197
pipeChunkRm(number + 1);

0 commit comments

Comments
 (0)