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>
This commit is contained in:
Rich Trott 2019-02-17 18:50:27 -08:00
parent e4a3664fe9
commit d2c29bda50

View File

@ -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) => {