mirror of
https://github.com/go-gitea/gitea
synced 2024-12-01 11:43:19 +01:00
remove unused parameter
This commit is contained in:
parent
26bd1cddb6
commit
2daf7225e6
1 changed files with 2 additions and 2 deletions
|
@ -63,11 +63,11 @@ func CanUserWriteToBranch(ctx context.Context, p access_model.Permission, headRe
|
|||
return true
|
||||
}
|
||||
|
||||
return canMaintainerWriteToHeadBranch(ctx, p, headRepoID, branch, user)
|
||||
return canMaintainerWriteToHeadBranch(ctx, headRepoID, branch, user)
|
||||
}
|
||||
|
||||
// canMaintainerWriteToHeadBranch check whether user is a maintainer and could write to the branch
|
||||
func canMaintainerWriteToHeadBranch(ctx context.Context, p access_model.Permission, headRepoID int64, branch string, user *user_model.User) bool {
|
||||
func canMaintainerWriteToHeadBranch(ctx context.Context, headRepoID int64, branch string, user *user_model.User) bool {
|
||||
prs, err := GetUnmergedPullRequestsByHeadInfo(ctx, headRepoID, branch)
|
||||
if err != nil {
|
||||
log.Error("GetUnmergedPullRequestsByHeadInfo: %v", err)
|
||||
|
|
Loading…
Reference in a new issue