From 2daf7225e6a5083531c187b916ee4e3772070a5c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 2 May 2024 22:19:06 +0800 Subject: [PATCH] remove unused parameter --- models/issues/pull_list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/issues/pull_list.go b/models/issues/pull_list.go index b9423453ee..2ba14bd555 100644 --- a/models/issues/pull_list.go +++ b/models/issues/pull_list.go @@ -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)