Skip to content

Commit 0e52255

Browse files
committed
fix lint
1 parent 7c6937e commit 0e52255

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/actions/job_emitter.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ func checkJobsByRunID(ctx context.Context, runID int64) error {
167167
func checkJobsOfRun(ctx context.Context, run *actions_model.ActionRun) (jobs, updatedJobs []*actions_model.ActionRunJob, err error) {
168168
jobs, err = db.Find[actions_model.ActionRunJob](ctx, actions_model.FindRunJobOptions{RunID: run.ID})
169169
if err != nil {
170-
return
170+
return nil, nil, err
171171
}
172172
vars, err := actions_model.GetVariablesOfRun(ctx, run)
173173
if err != nil {
174-
return
174+
return nil, nil, err
175175
}
176176

177177
if err = db.WithTx(ctx, func(ctx context.Context) error {
@@ -193,10 +193,10 @@ func checkJobsOfRun(ctx context.Context, run *actions_model.ActionRun) (jobs, up
193193
}
194194
return nil
195195
}); err != nil {
196-
return
196+
return nil, nil, err
197197
}
198198

199-
return
199+
return jobs, updatedJobs, nil
200200
}
201201

202202
type jobStatusResolver struct {

0 commit comments

Comments
 (0)