Skip to content

Commit

Permalink
regression - tmp name included a trailing hyphen if no postfix was given
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Feb 8, 2020
1 parent 5110e94 commit 2c80c6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/tmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ function _generateTmpName(opts) {
process.pid,
'-',
_randomChars(12),
'-',
opts.postfix ? opts.postfix : ''
opts.postfix ? '-' + opts.postfix : ''
].join('');

return path.join(tmpDir, opts.dir, name);
Expand Down

0 comments on commit 2c80c6d

Please sign in to comment.