mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
Error strings should not be capitalized
Reported by staticcheck 2022.1.2 (v0.3.2) See: staticcheck.io
This commit is contained in:
@@ -140,7 +140,7 @@ func (o *ContentMockObject) Open(ctx context.Context, options ...fs.OpenOption)
|
||||
offset, limit = x.Decode(size)
|
||||
default:
|
||||
if option.Mandatory() {
|
||||
return nil, fmt.Errorf("Unsupported mandatory option: %v", option)
|
||||
return nil, fmt.Errorf("unsupported mandatory option: %v", option)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ func cleanFs(ctx context.Context, remote string, cleanup bool) error {
|
||||
}
|
||||
err = operations.Purge(ctx, dir, "")
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Purge failed: %w", err)
|
||||
err = fmt.Errorf("purge failed: %w", err)
|
||||
lastErr = err
|
||||
fs.Errorf(dir, "%v", err)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user