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