Skip to content

Commit

Permalink
fix #187: restore behaviour for #182
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance committed Mar 20, 2019
1 parent 69ad512 commit a66023a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/tmp.js
Expand Up @@ -241,8 +241,6 @@ function file(options, callback) {
opts = args[0],
cb = args[1];

opts.postfix = isBlank(opts.postfix) ? '.tmp' : opts.postfix;

// gets a temporary filename
tmpName(opts, function _tmpNameCreated(err, name) {
/* istanbul ignore else */
Expand Down Expand Up @@ -294,8 +292,6 @@ function fileSync(options) {
args = _parseArguments(options),
opts = args[0];

opts.postfix = isBlank(opts.postfix) ? '.tmp' : opts.postfix;

const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
const name = tmpNameSync(opts);
var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);
Expand Down

0 comments on commit a66023a

Please sign in to comment.