diff options
author | William <willyb321@users.noreply.github.com> | 2017-02-12 04:24:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 04:24:28 +0300 |
commit | d0ff190e718a9f486b350dae2795f57554962624 (patch) | |
tree | bd4fd1cb1e41c462a76b5efae606231412814ebb /lib | |
parent | 2926d97dfb21448ad7cc5f68df1f347a3da0617f (diff) |
change os.tmpDir() to os.tmpdir()
fixes deprecation warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 7ff039e..89ad91d 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -58,7 +58,7 @@ var TMP try { TMP = path.join(fs.statSync('/tmp') && '/tmp', 'webtorrent') } catch (err) { - TMP = path.join(typeof os.tmpDir === 'function' ? os.tmpDir() : '/', 'webtorrent') + TMP = path.join(typeof os.tmpdir === 'function' ? os.tmpdir() : '/', 'webtorrent') } inherits(Torrent, EventEmitter) |