From ac55144eea535f1ae9111e5261119f56a6f899e8 Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Mon, 16 Jul 2012 22:50:20 -0700 Subject: [PATCH] Fixing issue with duplicate variable naming. --- lib/cli/utils.js | 5 +---- lib/util/util.js | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/cli/utils.js b/lib/cli/utils.js index 7d3119367..12e01aa15 100644 --- a/lib/cli/utils.js +++ b/lib/cli/utils.js @@ -456,7 +456,4 @@ exports.getHostNameSuffix = function () { || constants.DEFAULT_HOSTNAME_SUFFIX; }; -exports.pathExistsSync = function (path) { - var obj = fs.existsSync ? fs : path; - return obj.existsSync.apply(obj, arguments); -}; \ No newline at end of file +exports.pathExistsSync = fs.existsSync ? fs : path; \ No newline at end of file diff --git a/lib/util/util.js b/lib/util/util.js index ed49abab9..8da7226e4 100644 --- a/lib/util/util.js +++ b/lib/util/util.js @@ -217,7 +217,4 @@ exports.merge = function () { return _.extend.apply(this, arguments); }; -exports.pathExistsSync = function (path) { - var obj = fs.existsSync ? fs : path; - return obj.existsSync.apply(obj, arguments); -}; \ No newline at end of file +exports.pathExistsSync = fs.existsSync ? fs : path; \ No newline at end of file