Skip to content

Commit

Permalink
fix(fs): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Jun 20, 2022
1 parent a61bb6a commit 4db2560
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/fs/error.go → internal/fs/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
2 changes: 1 addition & 1 deletion internal/fs/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 4db2560

Please sign in to comment.