Skip to content

Commit

Permalink
optimize comparison on perfect match
Browse files Browse the repository at this point in the history
  • Loading branch information
MRtecno98 committed Jul 21, 2024
1 parent cd6f49d commit d1e8a18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bucket/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ func (c *OpenContext) ResolvePlugin(plugin Plugin) (RemotePlugin, error) {
score := ComparisonIndex(plugin, pl)
keys = append(keys, score)
scores[score] = pl

if score >= 1.0 {
return pl, nil
}
}
}

Expand Down

0 comments on commit d1e8a18

Please sign in to comment.