Skip to content

Commit

Permalink
Merge pull request #183 from gutte/master
Browse files Browse the repository at this point in the history
fix #182 fileSync takes empty string postfix option
  • Loading branch information
silkentrance authored Jan 10, 2019
2 parents fcbf27b + e6f772a commit 77d8e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function fileSync(options) {
args = _parseArguments(options),
opts = args[0];

opts.postfix = opts.postfix || '.tmp';
opts.postfix = (_isUndefined(opts.postfix)) ? '.tmp' : opts.postfix;

const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
const name = tmpNameSync(opts);
Expand Down

0 comments on commit 77d8e7e

Please sign in to comment.