From 26c14e218ad42eea2a23186d81232f8f08114457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Fri, 8 Nov 2024 13:03:57 +0100 Subject: [PATCH] fix lint --- deb/remote.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/deb/remote.go b/deb/remote.go index 43dac993..6638956e 100644 --- a/deb/remote.go +++ b/deb/remote.go @@ -350,16 +350,16 @@ ok: return err } - var architectures []string - if len(stanza["Architectures"]) > 0 { - architectures = strings.Split(stanza["Architectures"], " ") - } else if len(stanza["Architecture"]) > 0 { - architectures = strings.Split(stanza["Architecture"], " ") - } - if len(architectures) == 0 { - fmt.Printf("stanza arch: %s\n", stanza["Architecture"]) - architectures = strings.Split(stanza["Architecture"], " ") - } + var architectures []string + if len(stanza["Architectures"]) > 0 { + architectures = strings.Split(stanza["Architectures"], " ") + } else if len(stanza["Architecture"]) > 0 { + architectures = strings.Split(stanza["Architecture"], " ") + } + if len(architectures) == 0 { + fmt.Printf("stanza arch: %s\n", stanza["Architecture"]) + architectures = strings.Split(stanza["Architecture"], " ") + } sort.Strings(architectures) // "source" architecture is never present, despite Release file claims architectures = utils.StrSlicesSubstract(architectures, []string{ArchitectureSource})