From a0dabb5bf383d61016c5c79d53a186d4a40e132d Mon Sep 17 00:00:00 2001 From: Rakesh Bisht Date: Sun, 4 Jun 2023 23:36:46 +0530 Subject: [PATCH] Add default value to the isAbsolute function of utils --- lib/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils.js b/lib/utils.js index 56e12b9b54..55a50baa3d 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -57,6 +57,8 @@ exports.isAbsolute = function(path){ if ('/' === path[0]) return true; if (':' === path[1] && ('\\' === path[2] || '/' === path[2])) return true; // Windows device path if ('\\\\' === path.substring(0, 2)) return true; // Microsoft Azure absolute path + + return false; // None of the conditions are met }; /**