diff options
Diffstat (limited to 'services/repository')
-rw-r--r-- | services/repository/branch.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/branch.go b/services/repository/branch.go index df07030be3..28d24f121d 100644 --- a/services/repository/branch.go +++ b/services/repository/branch.go @@ -26,7 +26,7 @@ func DeleteBranch(doer *models.User, repo *models.Repository, gitRepo *git.Repos return ErrBranchIsDefault } - isProtected, err := repo.IsProtectedBranch(branchName, doer) + isProtected, err := repo.IsProtectedBranch(branchName) if err != nil { return err } |