mirror of
https://github.com/go-gitea/gitea
synced 2025-02-09 00:37:05 +01:00
Remove unnecessary variable
This commit is contained in:
parent
808e11d301
commit
16bd6510ac
@ -462,8 +462,7 @@ func RenameBranch(ctx context.Context, repo *repo_model.Repository, doer *user_m
|
|||||||
|
|
||||||
// enmuerates all branch related errors
|
// enmuerates all branch related errors
|
||||||
var (
|
var (
|
||||||
ErrBranchIsDefault = errors.New("branch is default")
|
ErrBranchIsDefault = errors.New("branch is default")
|
||||||
ErrInsufficientAccess = errors.New("insufficient access")
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func CanDeleteBranch(ctx context.Context, repo *repo_model.Repository, branchName string, doer *user_model.User) error {
|
func CanDeleteBranch(ctx context.Context, repo *repo_model.Repository, branchName string, doer *user_model.User) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user