diff --git a/cmd/fdroidcl/main.go b/cmd/fdroidcl/main.go index d02d348..a40b9a0 100644 --- a/cmd/fdroidcl/main.go +++ b/cmd/fdroidcl/main.go @@ -47,7 +47,7 @@ func filterAppsSearch(apps []fdroidcl.App, terms []string) []fdroidcl.App { return result } -func filterAppsInstalled(apps []fdroidcl.App, installed []string) []fdroidcl.App{ +func filterAppsInstalled(apps []fdroidcl.App, installed []string) []fdroidcl.App { instMap := make(map[string]struct{}, len(installed)) for _, id := range installed { instMap[id] = struct{}{} @@ -140,7 +140,6 @@ func printAppDetailed(app fdroidcl.App) { } } - var repoURL = flag.String("r", "https://f-droid.org/repo", "repository address") func init() { diff --git a/index.go b/index.go index 484affd..a632155 100644 --- a/index.go +++ b/index.go @@ -19,12 +19,12 @@ import ( type Index struct { Repo struct { - Name string `xml:"name,attr"` - PubKey string `xml:"pubkey,attr"` - Timestamp int `xml:"timestamp,attr"` - URL string `xml:"url,attr"` - Version int `xml:"version,attr"` - MaxAge int `xml:"maxage,attr"` + Name string `xml:"name,attr"` + PubKey string `xml:"pubkey,attr"` + Timestamp int `xml:"timestamp,attr"` + URL string `xml:"url,attr"` + Version int `xml:"version,attr"` + MaxAge int `xml:"maxage,attr"` Description string `xml:"description"` } `xml:"repo"` Apps []App `xml:"application"`