forked from coop-cloud/abra
refactor: simplify for loop
This commit is contained in:
parent
58bdb456df
commit
a581049cf1
|
@ -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
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
package main
|
||||
|
||||
import "coopcloud.tech/abra/cli"
|
||||
import (
|
||||
"coopcloud.tech/abra/cli"
|
||||
)
|
||||
|
||||
var Version string
|
||||
var Commit string
|
||||
|
|
Loading…
Reference in New Issue