From b16eb32509338a56ab8680e43c5bd8b986553fb8 Mon Sep 17 00:00:00 2001 From: Max Foxie Date: Sun, 7 Apr 2024 16:16:14 +0300 Subject: [PATCH] Fix the linter warnings --- pkg/appstore/appstore_download.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/appstore/appstore_download.go b/pkg/appstore/appstore_download.go index fbfe81e8..9a3d307e 100644 --- a/pkg/appstore/appstore_download.go +++ b/pkg/appstore/appstore_download.go @@ -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) }