Merge branch 'writeFileTest' of https://github.com/medayo/filer into writeFileTest

This commit is contained in:
Ben Heidemann 2021-04-18 16:22:30 +01:00
commit caed878a18
1 changed files with 1 additions and 1 deletions

View File

@ -1878,7 +1878,7 @@ function writeFile(context, path, data, options, callback) {
data = Buffer.from(data.toString());
}
else {
data = Buffer.from(data, options.encoding || 'utf8');
data = Buffer.from(data || '', options.encoding || 'utf8');
}
}