Skip to content

Commit a0a0324

Browse files
committed
Fix lint
1 parent 97cd6c4 commit a0a0324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/issues/issue_search.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func applyConditions(sess *xorm.Session, opts *IssuesOptions) {
281281
}
282282

283283
if opts.AccessUser != nil && !opts.AccessUser.IsAdmin {
284-
sess.And(issuePullAccessibleRepoCond("issue.repo_id", opts.AccessUser.ID, opts.Org, opts.Owner, opts.Team, opts.IsPull.Value()))
284+
sess.And(issuePullAccessibleRepoCond("issue.repo_id", opts.AccessUser.ID, opts.Org, opts.Team, opts.IsPull.Value()))
285285
}
286286
}
287287

@@ -328,7 +328,7 @@ func teamUnitsRepoCond(id string, userID, orgID, teamID int64, units ...unit.Typ
328328
}
329329

330330
// issuePullAccessibleRepoCond userID must not be zero, this condition require join repository table
331-
func issuePullAccessibleRepoCond(repoIDstr string, userID int64, org *organization.Organization, owner *user_model.User, team *organization.Team, isPull bool) builder.Cond {
331+
func issuePullAccessibleRepoCond(repoIDstr string, userID int64, org *organization.Organization, team *organization.Team, isPull bool) builder.Cond {
332332
cond := builder.NewCond()
333333
unitType := unit.TypeIssues
334334
if isPull {

0 commit comments

Comments
 (0)