Behavior optimized when resources are missing

This commit is contained in:
nobody 2021-05-03 06:48:03 +02:00
parent c9148c5cdd
commit 58fc32f2e6
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
1 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,9 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
} else { } else {
resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER); resourcePattern = resourcePath.replace(versionNumber, Resource.VERSION_PLACEHOLDER);
} }
if (resourcePattern === undefined) {
return false;
}
shorthandResource = shorthands.specialFiles(channelHost, channelPath, destinationSearchString); shorthandResource = shorthands.specialFiles(channelHost, channelPath, destinationSearchString);
if (shorthandResource) { if (shorthandResource) {