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

Return value optimized

This commit is contained in:
nobody
2021-01-30 06:45:30 +01:00
parent e597707eae
commit 1a9d73634c

View File

@ -140,7 +140,7 @@ helpers.checkAllowlisted = function(domain) {
wildcard = helpers.getWildcard(domain);
list = requestAnalyzer.allowlistedDomains;
return list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix];
return Boolean(list[domain] || list[domainWithoutPrefix] || list[wildcard] || list[domainWithoutPrefix]);
};
helpers.extractFilenameFromPath = function (path) {