Skip to content

Commit

Permalink
fix: do not initiate batch download if no plugins are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Feb 6, 2023
1 parent 56fd169 commit edb12a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/plugin/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []*
pInfo.BinPath = binPath
}

if len(missingPlugins) == 0 {
return nil
}

batchResolver := d.resolvers[resolverName].(resolver.BatchResolver)
batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins)
if err != nil {
Expand Down

0 comments on commit edb12a1

Please sign in to comment.