Skip to content

Commit

Permalink
Merge pull request #1339 from bugkiwi/master
Browse files Browse the repository at this point in the history
fix: 修复node>=14高版本无法支持传入undefined #1320
  • Loading branch information
2betop authored Nov 22, 2023
2 parents ae54044 + de08a82 commit 1abf4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ _.write = function(path, data, charset, append) {
if (append) {
fs.appendFileSync(path, data, null);
} else {
fs.writeFileSync(path, data, null);
fs.writeFileSync(path, data || '', null);
}
};

Expand Down

0 comments on commit 1abf4ca

Please sign in to comment.