Skip to content
Snippets Groups Projects
Commit edb12a18 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

fix: do not initiate batch download if no plugins are missing

parent 56fd1697
No related branches found
No related tags found
No related merge requests found
...@@ -126,6 +126,10 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []* ...@@ -126,6 +126,10 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []*
pInfo.BinPath = binPath pInfo.BinPath = binPath
} }
if len(missingPlugins) == 0 {
return nil
}
batchResolver := d.resolvers[resolverName].(resolver.BatchResolver) batchResolver := d.resolvers[resolverName].(resolver.BatchResolver)
batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins) batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment