From d4be38ec0214c96fb9af94b4e729948bc4603f34 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Tue, 19 Aug 2025 14:57:29 +0200 Subject: [PATCH] build: fix lint issue: should omit type error from declaration --- backend/filelu/filelu_helper.go | 2 +- backend/s3/s3.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)