mirror of https://github.com/go-gitea/gitea.git
chore: Re-formatted code
This commit is contained in:
parent
de5a83a685
commit
1097739cb2
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue