Skip to content

Commit

Permalink
fix stat with null value
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 8, 2023
1 parent 876c600 commit a5355e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/conflicter.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Conflicter {
return true;
}

if (stat.mode && diskStat.mode !== stat.mode) {
if (stat && stat.mode && diskStat.mode !== stat.mode) {
return true;
}

Expand Down

0 comments on commit a5355e1

Please sign in to comment.