refactor: simplify for loop

This commit is contained in:
Roxie Gibson 2021-07-30 16:32:06 +01:00
parent 58bdb456df
commit a581049cf1
Signed by untrusted user: roxxers
GPG Key ID: 5D0140EDEE123F4D
2 changed files with 4 additions and 2 deletions

View File

@ -67,7 +67,7 @@ locally in a pass store (see passwordstore.org for more).
app := catl[appType]
var latestVersion string
for tag, _ := range app.Versions {
for tag := range app.Versions {
// apps.json versions are sorted so the last key is latest
latestVersion = tag
}

View File

@ -1,6 +1,8 @@
package main
import "coopcloud.tech/abra/cli"
import (
"coopcloud.tech/abra/cli"
)
var Version string
var Commit string