mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-10 17:23:18 +01:00
Code style improved
This commit is contained in:
parent
62d6d2b668
commit
b78c674406
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user