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:
parent
e4a3664fe9
commit
d2c29bda50
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user