Skip to content

Commit a66023a

Browse files
committed
fix #187: restore behaviour for #182
1 parent 69ad512 commit a66023a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/tmp.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@ function file(options, callback) {
241241
opts = args[0],
242242
cb = args[1];
243243

244-
opts.postfix = isBlank(opts.postfix) ? '.tmp' : opts.postfix;
245-
246244
// gets a temporary filename
247245
tmpName(opts, function _tmpNameCreated(err, name) {
248246
/* istanbul ignore else */
@@ -294,8 +292,6 @@ function fileSync(options) {
294292
args = _parseArguments(options),
295293
opts = args[0];
296294

297-
opts.postfix = isBlank(opts.postfix) ? '.tmp' : opts.postfix;
298-
299295
const discardOrDetachDescriptor = opts.discardDescriptor || opts.detachDescriptor;
300296
const name = tmpNameSync(opts);
301297
var fd = fs.openSync(name, CREATE_FLAGS, opts.mode || FILE_MODE);

0 commit comments

Comments
 (0)