mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-11 01:25:32 +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.
|
// Resource mapping files are never locally available.
|
||||||
if (Resource.MAPPING_EXPRESSION.test(destinationPath)) {
|
if (Resource.MAPPING_EXPRESSION.test(destinationPath)) {
|
||||||
return false;
|
return {
|
||||||
|
'result': false,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
basePath = requestAnalyzer._matchBasePath(hostMappings, destinationPath);
|
basePath = requestAnalyzer._matchBasePath(hostMappings, destinationPath);
|
||||||
resourceMappings = hostMappings[basePath];
|
resourceMappings = hostMappings[basePath];
|
||||||
|
|
||||||
if (!resourceMappings) {
|
if (!resourceMappings) {
|
||||||
return false;
|
return {
|
||||||
|
'result': false,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return either the local target's path or false.
|
// Return either the local target's path or false.
|
||||||
|
Loading…
Reference in New Issue
Block a user