Fix various linter warnings (#5824)

This commit is contained in:
Alessio Treglia
2020-03-18 12:59:08 +00:00
committed by GitHub
parent a84e02f390
commit 3db39cda3c
11 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ func GetCheckPassword(prompt, prompt2 string, buf *bufio.Reader) (string, error)
// If the input is not recognized, it returns false and a nil error.
func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error) {
if inputIsTty() {
fmt.Print(fmt.Sprintf("%s [y/N]: ", prompt))
fmt.Printf("%s [y/N]: ", prompt)
}
response, err := readLineFromBuf(buf)