From 66d5514a2f8fd9abcac38691fd7af4b10802cdd8 Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Mon, 18 Nov 2024 01:24:45 +0500 Subject: [PATCH] fix(runners): return empty array not null --- db/sql/runner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/db/sql/runner.go b/db/sql/runner.go index 64b090ed..0643058b 100644 --- a/db/sql/runner.go +++ b/db/sql/runner.go @@ -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 }