Skip to content

Commit

Permalink
fix #182 fileSync takes empty string postfix option
Browse files Browse the repository at this point in the history
  • Loading branch information
gutte committed Jan 10, 2019
1 parent fcbf27b commit e6f772a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tmp.js
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 e6f772a

Please sign in to comment.