diff options
Diffstat (limited to 'cli/rt/40_write_file.js')
-rw-r--r-- | cli/rt/40_write_file.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/40_write_file.js b/cli/rt/40_write_file.js index 2f54aa1cf..7a9cb1f40 100644 --- a/cli/rt/40_write_file.js +++ b/cli/rt/40_write_file.js @@ -18,7 +18,7 @@ } } - const openOptions = !!options.append + const openOptions = options.append ? { write: true, create: true, append: true } : { write: true, create: true, truncate: true }; const file = openSync(path, openOptions); @@ -48,7 +48,7 @@ } } - const openOptions = !!options.append + const openOptions = options.append ? { write: true, create: true, append: true } : { write: true, create: true, truncate: true }; const file = await open(path, openOptions); |