Merge branch 'writeFileTest' of https://github.com/medayo/filer into writeFileTest
This commit is contained in:
commit
caed878a18
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue