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

(cherry picked from commit 5523c00b01)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-08-03 10:20:31 -04:00
committed by GitHub
co-authored by Will Browne
parent ada287544f
commit 557b044c15
@@ -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;
}