Skip to content

Commit 1394ed7

Browse files
ChristopherHXlunny
andauthored
Update models/actions/runner.go
Co-authored-by: Lunny Xiao <[email protected]>
1 parent 6f8aaf6 commit 1394ed7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

models/actions/runner.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ func (opts FindRunnerOptions) ToConds() builder.Cond {
201201
}
202202
cond = cond.And(c)
203203
} else if !opts.WithAvailable {
204-
c := builder.NewCond().And(builder.Eq{"repo_id": 0, "owner_id": 0})
205-
cond = cond.And(c)
204+
cond = cond.And(builder.Eq{"repo_id": 0, "owner_id": 0})
206205
}
207206

208207
if opts.Filter != "" {

0 commit comments

Comments
 (0)