We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9aedcc commit 579213fCopy full SHA for 579213f
models/issues/pull_list.go
@@ -34,7 +34,7 @@ type PullRequestsOptions struct {
34
func listPullRequestStatement(ctx context.Context, baseRepoID int64, opts *PullRequestsOptions) *xorm.Session {
35
sess := db.GetEngine(ctx).Where("pull_request.base_repo_id=?", baseRepoID)
36
37
- if len(opts.BaseBranch) > 0 {
+ if opts.BaseBranch != "" {
38
sess.And("pull_request.base_branch=?", opts.BaseBranch)
39
}
40
0 commit comments