Skip to content

Commit

Permalink
guarantee we have a timesDiff
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jan 29, 2016
1 parent 1f1790c commit dbae7f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dest/fileOperations/updateMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ function updateMetadata(fd, file, callback) {
if (modeDiff) {
return mode();
}
times();

if (timesDiff) {
return times();
}

callback(null, fd);

function mode() {
var mode = stat.mode ^ modeDiff;
Expand Down

0 comments on commit dbae7f4

Please sign in to comment.