Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: fix gocritic lint issue unlambda

albertony4d787ae87ff3
diff --git a/fs/accounting/token_bucket.go b/fs/accounting/token_bucket.go
index 5e5b597e1..a306096e8 100644
--- a/fs/accounting/token_bucket.go
+++ b/fs/accounting/token_bucket.go
@@ -232,10 +232,8 @@ func (tb *tokenBucket) rcBwlimit(ctx context.Context, in rc.Params) (out rc.Para
// Remote control for the token bucket
func init() {
rc.Add(rc.Call{
- Path: "core/bwlimit",
- Fn: func(ctx context.Context, in rc.Params) (out rc.Params, err error) {
- return TokenBucket.rcBwlimit(ctx, in)
- },
+ Path: "core/bwlimit",
+ Fn: TokenBucket.rcBwlimit,
Title: "Set the bandwidth limit.",
Help: `
This sets the bandwidth limit to the string passed in. This should be