From 1097739cb2c14df3a49d8a6ee958d3a6ce964610 Mon Sep 17 00:00:00 2001 From: cclvi256 Date: Thu, 19 Dec 2024 22:43:52 +0800 Subject: [PATCH] chore: Re-formatted code --- models/actions/run.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/models/actions/run.go b/models/actions/run.go index 39545201ba8..53d597d8fc9 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -380,11 +380,11 @@ func GetLatestRun(ctx context.Context, repoID int64) (*ActionRun, error) { func GetRunsBeforeDate(ctx context.Context, repoID int64, beforeDate time.Time) ([]*ActionRun, error) { var runs []*ActionRun err := db.GetEngine(ctx). - Where("repo_id = ?", repoID). - And("created < ?", beforeDate). - Find(&runs) + Where("repo_id = ?", repoID). + And("created < ?", beforeDate). + Find(&runs) if err != nil { - return nil, err + return nil, err } return runs, nil }