Skip to content
Permalink
Browse files

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: #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 committed Feb 18, 2019
1 parent e4a3664 commit d2c29bda50c4e5579537ab8cb9ac5d1f567da4a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) => {

0 comments on commit d2c29bd

Please sign in to comment.
You can’t perform that action at this time.