summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-02-17 18:50:27 -0800
committerRich Trott <rtrott@gmail.com>2019-02-19 19:18:05 -0800
commitd2c29bda50c4e5579537ab8cb9ac5d1f567da4a8 (patch)
treef13d2429e3a84297e4154c84c2ff27b9215824e0 /test
parente4a3664fe98aad704503e6e19e75750d02eed384 (diff)
downloadandroid-node-v8-d2c29bda50c4e5579537ab8cb9ac5d1f567da4a8.tar.gz
android-node-v8-d2c29bda50c4e5579537ab8cb9ac5d1f567da4a8.tar.bz2
android-node-v8-d2c29bda50c4e5579537ab8cb9ac5d1f567da4a8.zip
test: remove unnecessary default tmpdir value in test
`tmpdir.path` will never be falsy so there is no need to guard against that. PR-URL: https://github.com/nodejs/node/pull/26177 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-pipe-file-to-http.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-pipe-file-to-http.js b/test/parallel/test-pipe-file-to-http.js
index 4bc71069da..9b99ddb675 100644
--- a/test/parallel/test-pipe-file-to-http.js
+++ b/test/parallel/test-pipe-file-to-http.js
@@ -29,7 +29,7 @@ const path = require('path');
const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
-const filename = path.join(tmpdir.path || '/tmp', 'big');
+const filename = path.join(tmpdir.path, 'big');
let count = 0;
const server = http.createServer((req, res) => {