Skip to content

Commit edb12a1

Browse files
fix: do not initiate batch download if no plugins are missing
1 parent 56fd169 commit edb12a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/plugin/discovery/discovery.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ func (d *Discovery) FindPluginsWithBatchResolver(resolverName string, pInfos []*
126126
pInfo.BinPath = binPath
127127
}
128128

129+
if len(missingPlugins) == 0 {
130+
return nil
131+
}
132+
129133
batchResolver := d.resolvers[resolverName].(resolver.BatchResolver)
130134
batchDownloadInfo, err := batchResolver.BatchResolvePlugins(missingPlugins)
131135
if err != nil {

0 commit comments

Comments
 (0)