Skip to content

Commit 0d550c1

Browse files
fix linting
1 parent 41b8340 commit 0d550c1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cobra.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ var initializers []func()
4343
var finalizers []func()
4444

4545
const (
46-
defaultPrefixMatching = false
47-
defaultCommandSorting = true
48-
defaultCaseInsensitive = false
49-
defaultTraverseRunHooks = false
46+
defaultPrefixMatching = false
47+
defaultCommandSorting = true
48+
defaultCaseInsensitive = false
49+
defaultTraverseRunHooks = false
5050
defaultErrorOnUnknownSubcommand = false
5151
)
5252

command_win.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func preExecHook(c *Command) {
3434
time.Sleep(MousetrapDisplayDuration)
3535
} else {
3636
c.Println("Press return to continue...")
37-
fmt.Scanln()
37+
_, _ = fmt.Scanln()
3838
}
3939
os.Exit(1)
4040
}

0 commit comments

Comments
 (0)