mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 16:44:26 +00:00
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
Block a user