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: nodejs#26177
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
  • Loading branch information
Trott committed Feb 20, 2019
1 parent e4a3664 commit d2c29bd
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 d2c29bd

Please sign in to comment.