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 lint issue: should omit type error from declaration

albertonyd4be38ec0214
diff --git a/backend/filelu/filelu_helper.go b/backend/filelu/filelu_helper.go
index 771e6c2fa..da5d98faf 100644
--- a/backend/filelu/filelu_helper.go
+++ b/backend/filelu/filelu_helper.go
@@ -14,7 +14,7 @@ import (
)
// errFileNotFound represent file not found error
-var errFileNotFound error = errors.New("file not found")
+var errFileNotFound = errors.New("file not found")
// getFileCode retrieves the file code for a given file path
func (f *Fs) getFileCode(ctx context.Context, filePath string) (string, error) {
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index e64430192..71967f123 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -6641,7 +6641,7 @@ func (o *Object) uploadMultipart(ctx context.Context, src fs.ObjectInfo, in io.R
return wantETag, gotETag, versionID, ui, err
}
- var s3cw *s3ChunkWriter = chunkWriter.(*s3ChunkWriter)
+ s3cw := chunkWriter.(*s3ChunkWriter)
gotETag = *stringClone(s3cw.eTag)
versionID = stringClone(s3cw.versionID)