check not empty root urls before setting field (#53135) (#53235)

(cherry picked from commit 5523c00b01)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)andWill Browne authored and GitHub committed 2022-08-09 08:19:23 -04:00
1 parent 2a5724219c
commit 3c655effec
1 file changed
+1 -1
@@ -22,7 +22,7 @@ const pluginSignRunner: TaskRunner<PluginSignOptions> = async ({ signatureType,
if (signatureType) {
manifest.signatureType = signatureType;
}
if (rootUrls) {
if (rootUrls && rootUrls.length > 0) {
rootUrls.forEach(assertRootUrlIsValid);
manifest.rootUrls = rootUrls;
}