From 818b280a397f0f25a9c9523b4193044fde82fe39 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 17 Feb 2019 18:50:27 -0800 Subject: [PATCH] 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 Reviewed-By: Daniel Bevenius Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Weijia Wang --- test/parallel/test-pipe-file-to-http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-pipe-file-to-http.js b/test/parallel/test-pipe-file-to-http.js index 4bc71069da413f..9b99ddb675de41 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) => {