Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Commit abec3ae

Browse files
authored
Merge pull request #625 from ChALkeR/tmpdir
use os.tmpdir() instead of os.tmpDir()
2 parents 0e8c350 + 0b5e80d commit abec3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/store/tmp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var util = require('util'),
1111
Store = require('./index');
1212

1313
function makeTempDir() {
14-
var dir = path.join(os.tmpDir ? os.tmpDir() : /* istanbul ignore next */ (process.env.TMPDIR || '/tmp'), 'ts' + new Date().getTime());
14+
var dir = path.join(os.tmpdir ? os.tmpdir() : /* istanbul ignore next */ (process.env.TMPDIR || '/tmp'), 'ts' + new Date().getTime());
1515
mkdirp.sync(dir);
1616
return dir;
1717
}
@@ -29,7 +29,7 @@ function makeTempDir() {
2929
* @module store
3030
* @param {Object} opts Optional.
3131
* @param {String} [opts.tmp] a pre-existing directory to use as the `tmp` directory. When not specified, a random directory
32-
* is created under `os.tmpDir()`
32+
* is created under `os.tmpdir()`
3333
* @constructor
3434
*/
3535
function TmpStore(opts) {

0 commit comments

Comments
 (0)