mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
build: fix govet lint errors with golangci-lint v1.60.1
There were a lot of instances of this lint error
printf: non-constant format string in call to github.com/rclone/rclone/fs.Logf (govet)
Which were fixed by re-arranging the arguments and adding "%s".
There were quite a few genuine bugs which were found too.
This commit is contained in:
@@ -104,7 +104,7 @@ func bodyToString(responseBody io.Reader) (bodyString string, err error) {
|
||||
return "", err
|
||||
}
|
||||
bodyString = string(bodyBytes)
|
||||
fs.Debugf(nil, "jwtutil: Response Body: "+bodyString)
|
||||
fs.Debugf(nil, "jwtutil: Response Body: %q", bodyString)
|
||||
return bodyString, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -33,5 +33,5 @@ func ReadPassword(fd int) ([]byte, error) {
|
||||
|
||||
// WriteTerminalTitle writes a string to the terminal title
|
||||
func WriteTerminalTitle(title string) {
|
||||
fmt.Printf(ChangeTitle + title + BEL)
|
||||
fmt.Print(ChangeTitle + title + BEL)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user