Remove unnecessary variable

This commit is contained in:
Lunny Xiao 2024-12-05 21:33:43 -08:00
parent 808e11d301
commit 16bd6510ac
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -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 {