From f23c0751887b75368a263686619824959bbae67c Mon Sep 17 00:00:00 2001 From: AlejandroSuero Date: Sun, 8 Sep 2024 13:20:45 +0200 Subject: [PATCH] fix: `golangci-lint` errors --- help.go | 1 - main.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/help.go b/help.go index 9695737..bd9f3ae 100644 --- a/help.go +++ b/help.go @@ -44,7 +44,6 @@ func helpPrinter(_ kong.HelpOptions, ctx *kong.Context) error { switch f.Name { case "version", "interactive": printFlag(f) - break } } diff --git a/main.go b/main.go index 22a7a06..97b0c08 100644 --- a/main.go +++ b/main.go @@ -60,12 +60,11 @@ func main() { printErrorFatal("Invalid Usage", err) } - //nolint: nestif if config.Version { if Version == "" { Version = "latest (built from source)" if info, ok := debug.ReadBuildInfo(); ok && (info.Main.Version != "" && info.Main.Version != "(devel)") { - Version = info.Main.Version + Version = info.Main.Version } } version := fmt.Sprintf("freeze version: %s", Version)