fix(runners): return empty array not null

This commit is contained in:
Denis Gukov 2024-11-18 01:24:45 +05:00
parent 780926cc02
commit 66d5514a2f

View File

@ -11,6 +11,7 @@ func (d *SqlDb) GetRunner(projectID int, runnerID int) (runner db.Runner, err er
}
func (d *SqlDb) GetRunners(projectID int, activeOnly bool) (runners []db.Runner, err error) {
runners = make([]db.Runner, 0)
return
}