summaryrefslogtreecommitdiff
path: root/cli/rt/40_write_file.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-11-03 16:19:29 +0100
committerGitHub <noreply@github.com>2020-11-03 16:19:29 +0100
commit8e914be7420715620cad74fbb020c5e87ac875a2 (patch)
tree2fefc0111f85533de2bd24e54f70c6c1241e3d3b /cli/rt/40_write_file.js
parente736d0f60f6cdf38e2d317ee08a7125de9e57d69 (diff)
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code.
Diffstat (limited to 'cli/rt/40_write_file.js')
-rw-r--r--cli/rt/40_write_file.js4
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);