Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #48 from ViciousPotato/callback
Browse files Browse the repository at this point in the history
copyDirRecursive callback receives at least a null error parameter.
  • Loading branch information
Ryan McGrath committed May 3, 2013
2 parents c8fc125 + e70a638 commit dff761f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wrench.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ exports.copyDirRecursive = function copyDirRecursive(srcDir, newDir, clbk) {

var filename = files.shift();
if (filename === null || typeof filename == 'undefined')
return clbk();
return clbk(null);

var file = srcDir+'/'+filename,
newFile = newDir+'/'+filename;
Expand Down

0 comments on commit dff761f

Please sign in to comment.