1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Code style improved

This commit is contained in:
nobody
2021-12-04 08:52:29 +01:00
parent 62d6d2b668
commit b78c674406

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.