summaryrefslogtreecommitdiff
path: root/test/parallel/test-fs-readv-promises.js
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2020-11-24 14:11:20 +0100
committerMichaël Zasso <targos@protonmail.com>2020-12-07 20:33:45 +0100
commitbf31d3c3b17ffe97828381dc7caf3f73d21805fd (patch)
tree8bac22a5f87d0a278b8ed62b489b2a3069af2b44 /test/parallel/test-fs-readv-promises.js
parent0869b829fa6be2934c5a2e7fe8eaeb2e89490a8f (diff)
downloadnode-new-bf31d3c3b17ffe97828381dc7caf3f73d21805fd.tar.gz
tools: enable no-unused-expressions lint rule
Fixes: https://github.com/nodejs/node/issues/36246 PR-URL: https://github.com/nodejs/node/pull/36248 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-fs-readv-promises.js')
-rw-r--r--test/parallel/test-fs-readv-promises.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-fs-readv-promises.js b/test/parallel/test-fs-readv-promises.js
index 1132417c9e..1d12126e55 100644
--- a/test/parallel/test-fs-readv-promises.js
+++ b/test/parallel/test-fs-readv-promises.js
@@ -18,7 +18,7 @@ function getFileName() {
const allocateEmptyBuffers = (combinedLength) => {
const bufferArr = [];
// Allocate two buffers, each half the size of exptectedBuff
- bufferArr[0] = Buffer.alloc(Math.floor(combinedLength / 2)),
+ bufferArr[0] = Buffer.alloc(Math.floor(combinedLength / 2));
bufferArr[1] = Buffer.alloc(combinedLength - bufferArr[0].length);
return bufferArr;