refactor: simplify for loop

This commit is contained in:
2021-07-30 16:32:06 +01:00
parent 58bdb456df
commit a581049cf1
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
}