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) }