From 0d550c15a8a40ba8639acb708bbf7ee5b7df083d Mon Sep 17 00:00:00 2001 From: Andre Mueller Date: Fri, 25 Oct 2024 11:18:59 +0200 Subject: [PATCH] fix linting --- cobra.go | 8 ++++---- command_win.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cobra.go b/cobra.go index aea6a0e8..1f0d24bd 100644 --- a/cobra.go +++ b/cobra.go @@ -43,10 +43,10 @@ var initializers []func() var finalizers []func() const ( - defaultPrefixMatching = false - defaultCommandSorting = true - defaultCaseInsensitive = false - defaultTraverseRunHooks = false + defaultPrefixMatching = false + defaultCommandSorting = true + defaultCaseInsensitive = false + defaultTraverseRunHooks = false defaultErrorOnUnknownSubcommand = false ) diff --git a/command_win.go b/command_win.go index adbef395..b9c248a4 100644 --- a/command_win.go +++ b/command_win.go @@ -34,7 +34,7 @@ func preExecHook(c *Command) { time.Sleep(MousetrapDisplayDuration) } else { c.Println("Press return to continue...") - fmt.Scanln() + _, _ = fmt.Scanln() } os.Exit(1) }