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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user