mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 17:55:46 +02: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:
@@ -568,7 +568,7 @@ func DeleteFileWithBackupDir(ctx context.Context, dst fs.Object, backupDir fs.Fs
|
||||
fs.Errorf(dst, "Couldn't %s: %v", action, err)
|
||||
err = fs.CountError(err)
|
||||
} else if !skip {
|
||||
fs.Infof(dst, actioned)
|
||||
fs.Infof(dst, "%s", actioned)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
@@ -507,7 +507,7 @@ func rcRunCommand(ctx context.Context, in Params) (out Params, err error) {
|
||||
var httpResponse http.ResponseWriter
|
||||
httpResponse, err = in.GetHTTPResponseWriter()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("response object is required\n" + err.Error())
|
||||
return nil, fmt.Errorf("response object is required\n%w", err)
|
||||
}
|
||||
|
||||
var allArgs = []string{}
|
||||
|
Reference in New Issue
Block a user