add missing check for root URLs length (#53239)

This commit is contained in:
Will Browne authored and GitHub committed 2022-08-03 17:13:45 +02:00
1 parent f8d6730134
commit 46b7ca12e1
1 file changed
+1 -1
@@ -140,7 +140,7 @@ const packagePluginRunner: TaskRunner<PluginCIOptions> = async ({ signatureType,
if (signatureType) {
manifest.signatureType = signatureType;
}
if (rootUrls) {
if (rootUrls && rootUrls.length > 0) {
rootUrls.forEach(assertRootUrlIsValid);
manifest.rootUrls = rootUrls;
}