From a1fd60ec2b296918befca263fa1986249a4840ef Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Fri, 24 Jun 2022 17:20:31 +0200 Subject: [PATCH] staticcheck: empty branch --- backend/yandex/yandex.go | 8 ++++---- fstest/fstests/fstests.go | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.go index 7eea7187f..3097a8bc9 100644 --- a/backend/yandex/yandex.go +++ b/backend/yandex/yandex.go @@ -782,11 +782,11 @@ func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string } _, err = f.readMetaDataForPath(ctx, dstPath, &api.ResourceInfoRequestOptions{}) - if apiErr, ok := err.(*api.ErrorResponse); ok { + if _, ok := err.(*api.ErrorResponse); ok { // does not exist - if apiErr.ErrorName == "DiskNotFoundError" { - // OK - } + //if apiErr.ErrorName == "DiskNotFoundError" { + // // OK + //} } else if err != nil { return err } else { diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go index 286a67871..97e44ea1a 100644 --- a/fstest/fstests/fstests.go +++ b/fstest/fstests/fstests.go @@ -1459,9 +1459,7 @@ func Run(t *testing.T, opt *Opt) { assert.Equal(t, metaMimeType, gotMimeType) } }) - } else { - // Have some metadata here we didn't write - can't really check it! - } + } // else: Have some metadata here we didn't write - can't really check it! }) // TestObjectSetModTime tests that SetModTime works