We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcbf27b + e6f772a commit 77d8e7eCopy full SHA for 77d8e7e
lib/tmp.js
@@ -285,7 +285,7 @@ function fileSync(options) {
285
args = _parseArguments(options),
286
opts = args[0];
287
288
- opts.postfix = opts.postfix || '.tmp';
+ opts.postfix = (_isUndefined(opts.postfix)) ? '.tmp' : opts.postfix;
289
290
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
291
const name = tmpNameSync(opts);
0 commit comments