From 16bd6510acdf3f549f781977e9b7c1fd162ad5d0 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 5 Dec 2024 21:33:43 -0800 Subject: [PATCH] Remove unnecessary variable --- services/repository/branch.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/repository/branch.go b/services/repository/branch.go index b4a4f6426b4..7443c3859c9 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.go @@ -462,8 +462,7 @@ func RenameBranch(ctx context.Context, repo *repo_model.Repository, doer *user_m // enmuerates all branch related errors var ( - ErrBranchIsDefault = errors.New("branch is default") - ErrInsufficientAccess = errors.New("insufficient access") + ErrBranchIsDefault = errors.New("branch is default") ) func CanDeleteBranch(ctx context.Context, repo *repo_model.Repository, branchName string, doer *user_model.User) error {