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) {
|
func GetRunsBeforeDate(ctx context.Context, repoID int64, beforeDate time.Time) ([]*ActionRun, error) {
|
||||||
var runs []*ActionRun
|
var runs []*ActionRun
|
||||||
err := db.GetEngine(ctx).
|
err := db.GetEngine(ctx).
|
||||||
Where("repo_id = ?", repoID).
|
Where("repo_id = ?", repoID).
|
||||||
And("created < ?", beforeDate).
|
And("created < ?", beforeDate).
|
||||||
Find(&runs)
|
Find(&runs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return runs, nil
|
return runs, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue