Skip to content

Commit

Permalink
test: remove unnecessary default tmpdir value in test
Browse files Browse the repository at this point in the history
`tmpdir.path` will never be falsy so there is no need to guard against
that.

PR-URL: #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>
  • Loading branch information
Trott authored and addaleax committed Feb 21, 2019
1 parent 199154f commit a6be873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-pipe-file-to-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a6be873

Please sign in to comment.