summaryrefslogtreecommitdiff
path: root/lib/os.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/os.js')
-rw-r--r--lib/os.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/os.js b/lib/os.js
index cab148581a..a59cc49bae 100644
--- a/lib/os.js
+++ b/lib/os.js
@@ -51,8 +51,9 @@ exports.tmpdir = function() {
return path;
};
-exports.tmpDir = internalUtil.deprecate(exports.tmpdir,
- 'os.tmpDir() is deprecated. Use os.tmpdir() instead.');
+const tmpDirDeprecationMsg =
+ 'os.tmpDir() is deprecated. Use os.tmpdir() instead.';
+exports.tmpDir = internalUtil.deprecate(exports.tmpdir, tmpDirDeprecationMsg);
exports.getNetworkInterfaces = internalUtil.deprecate(function() {
return exports.networkInterfaces();