Skip to content

Commit 1097739

Browse files
committed
chore: Re-formatted code
1 parent de5a83a commit 1097739

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

models/actions/run.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,11 +380,11 @@ func GetLatestRun(ctx context.Context, repoID int64) (*ActionRun, error) {
380380
func GetRunsBeforeDate(ctx context.Context, repoID int64, beforeDate time.Time) ([]*ActionRun, error) {
381381
var runs []*ActionRun
382382
err := db.GetEngine(ctx).
383-
Where("repo_id = ?", repoID).
384-
And("created < ?", beforeDate).
385-
Find(&runs)
383+
Where("repo_id = ?", repoID).
384+
And("created < ?", beforeDate).
385+
Find(&runs)
386386
if err != nil {
387-
return nil, err
387+
return nil, err
388388
}
389389
return runs, nil
390390
}

0 commit comments

Comments
 (0)