From a66023a28b93978656d9ce9db94b27193ab297ba Mon Sep 17 00:00:00 2001 From: Carsten Klein Date: Wed, 20 Mar 2019 21:29:19 +0100 Subject: [PATCH] fix #187: restore behaviour for #182 --- lib/tmp.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/tmp.js b/lib/tmp.js index 4e38f6c..de6f4a7 100644 --- a/lib/tmp.js +++ b/lib/tmp.js @@ -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 */ @@ -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);