From 4db25605e7270e9495bb694839347eb23fc3f3ef Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Mon, 20 Jun 2022 19:50:59 +0800 Subject: [PATCH] fix(fs): typo --- internal/fs/{error.go => errors.go} | 2 +- internal/fs/write.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename internal/fs/{error.go => errors.go} (50%) diff --git a/internal/fs/error.go b/internal/fs/errors.go similarity index 50% rename from internal/fs/error.go rename to internal/fs/errors.go index d37edb8b..52015118 100644 --- a/internal/fs/error.go +++ b/internal/fs/errors.go @@ -3,5 +3,5 @@ package fs import "errors" var ( - ErrMoveBetwwenTwoAccounts = errors.New("can't move files between two account, try to copy") + ErrMoveBetweenTwoAccounts = errors.New("can't move files between two account, try to copy") ) diff --git a/internal/fs/write.go b/internal/fs/write.go index b27c1a04..0f3cd4f1 100644 --- a/internal/fs/write.go +++ b/internal/fs/write.go @@ -25,7 +25,7 @@ func Move(ctx context.Context, account driver.Driver, srcPath, dstPath string) e return errors.WithMessage(err, "failed get dst account") } if srcAccount.GetAccount() != dstAccount.GetAccount() { - return errors.WithStack(ErrMoveBetwwenTwoAccounts) + return errors.WithStack(ErrMoveBetweenTwoAccounts) } return operations.Move(ctx, account, srcActualPath, dstActualPath) }