Code style improved

This commit is contained in:
nobody 2021-12-04 08:52:29 +01:00
parent 62d6d2b668
commit b78c674406
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 6 additions and 2 deletions

View File

@ -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.