mirror of
https://github.com/cheat/cheat.git
synced 2025-09-05 03:28:29 +02:00
chore: various lint corrections
Make various lint corrections in order to appease `staticcheck`.
This commit is contained in:

committed by
Chris Lane

parent
484b447391
commit
85f5ae8ec7
@ -14,7 +14,7 @@ func Prompt(prompt string, def bool) (bool, error) {
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
|
||||
// display the prompt
|
||||
fmt.Print(fmt.Sprintf("%s: ", prompt))
|
||||
fmt.Printf("%s: ", prompt)
|
||||
|
||||
// read the answer
|
||||
ans, err := reader.ReadString('\n')
|
||||
|
Reference in New Issue
Block a user