From b78c674406f4609bf70180273e4b83db9c638fcf Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 4 Dec 2021 08:52:29 +0100 Subject: [PATCH] Code style improved --- core/request-analyzer.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/request-analyzer.js b/core/request-analyzer.js index dae6dc3d..694a6327 100644 --- a/core/request-analyzer.js +++ b/core/request-analyzer.js @@ -101,14 +101,18 @@ requestAnalyzer.getLocalTarget = function (requestDetails, initiator) { // Resource mapping files are never locally available. if (Resource.MAPPING_EXPRESSION.test(destinationPath)) { - return false; + return { + 'result': false, + }; } basePath = requestAnalyzer._matchBasePath(hostMappings, destinationPath); resourceMappings = hostMappings[basePath]; if (!resourceMappings) { - return false; + return { + 'result': false, + }; } // Return either the local target's path or false.