mirror of
https://github.com/rclone/rclone.git
synced 2026-01-06 02:23:24 +00:00
build: fix gosimple lint errors with golangci-lint v1.60.1
This commit is contained in:
@@ -62,7 +62,7 @@ func getAuthorizationToken(ctx context.Context, srv *rest.Client, user, password
|
||||
// This is only going to be http errors here
|
||||
return "", fmt.Errorf("failed to authenticate: %w", err)
|
||||
}
|
||||
if result.Errors != nil && len(result.Errors) > 0 {
|
||||
if len(result.Errors) > 0 {
|
||||
return "", errors.New(strings.Join(result.Errors, ", "))
|
||||
}
|
||||
if result.Token == "" {
|
||||
|
||||
Reference in New Issue
Block a user