Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change os.tmpDir() to os.tmpdir() #1043

Merged
merged 1 commit into from Feb 12, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

change os.tmpDir() to os.tmpdir()

fixes deprecation warnings
  • Loading branch information
willyb321 committed Feb 12, 2017
commit d0ff190e718a9f486b350dae2795f57554962624
@@ -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)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.