Skip to content

Commit 579213f

Browse files
wxiaoguangdelvh
andauthored
Update models/issues/pull_list.go
Co-authored-by: delvh <[email protected]>
1 parent b9aedcc commit 579213f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/pull_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type PullRequestsOptions struct {
3434
func listPullRequestStatement(ctx context.Context, baseRepoID int64, opts *PullRequestsOptions) *xorm.Session {
3535
sess := db.GetEngine(ctx).Where("pull_request.base_repo_id=?", baseRepoID)
3636

37-
if len(opts.BaseBranch) > 0 {
37+
if opts.BaseBranch != "" {
3838
sess.And("pull_request.base_branch=?", opts.BaseBranch)
3939
}
4040

0 commit comments

Comments
 (0)