Skip to content

Commit 2d12444

Browse files
committed
Update
1 parent 3bec240 commit 2d12444

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/actions/run.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs [
2020
jobIDs := container.FilterSlice(jobs, func(j *actions.ActionRunJob) (int64, bool) {
2121
return j.ID, j.ID != 0
2222
})
23-
2423
if len(jobIDs) > 0 {
2524
if err := db.GetEngine(ctx).Where("repo_id = ?", repoID).In("job_id", jobIDs).Find(&tasks); err != nil {
2625
return err
@@ -68,8 +67,7 @@ func DeleteRun(ctx context.Context, repoID int64, run *actions.ActionRun, jobs [
6867

6968
// Delete files on storage
7069
for _, tas := range tasks {
71-
err := RemoveLogs(ctx, tas.LogInStorage, tas.LogFilename)
72-
if err != nil {
70+
if err := RemoveLogs(ctx, tas.LogInStorage, tas.LogFilename); err != nil {
7371
log.Error("remove log file %q: %v", tas.LogFilename, err)
7472
}
7573
}

0 commit comments

Comments
 (0)