Skip to content

Commit

Permalink
Fix the linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
altfoxie committed Apr 7, 2024
1 parent faccfcf commit b16eb32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/appstore/appstore_download.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,15 @@ func (*appstore) downloadRequest(acc Account, app App, guid string) http.Request

func fileName(app App) string {
var parts []string

if app.BundleID != "" {
parts = append(parts, app.BundleID)
}

if app.ID != 0 {
parts = append(parts, strconv.FormatInt(app.ID, 10))
}

if app.Version != "" {
parts = append(parts, app.Version)
}
Expand Down

0 comments on commit b16eb32

Please sign in to comment.