Chore: Consolidate on golangci-lint (#25834)

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Arve Knudsen
2020-06-26 08:46:08 +02:00
committed by GitHub
parent 10715a1c79
commit 084542a006
13 changed files with 184 additions and 140 deletions
@@ -163,7 +163,8 @@ func supportsCurrentArch(version *models.Version) bool {
}
func latestSupportedVersion(plugin *models.Plugin) *models.Version {
for _, ver := range plugin.Versions {
for _, v := range plugin.Versions {
ver := v
if supportsCurrentArch(&ver) {
return &ver
}