1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-25 19:58:36 +00:00

fix: remove meanless code

This commit is contained in:
Jason Song
2022-12-19 18:32:38 +08:00
parent 215d80f6b2
commit b03f6e5b65
2 changed files with 0 additions and 2 deletions

View File

@@ -82,7 +82,6 @@ func (task *ActionTask) TakeTime() time.Duration {
if task.Status.IsDone() {
return task.Stopped.AsTime().Sub(started)
}
task.Stopped.AsTime().Sub(started)
return time.Since(started).Truncate(time.Second)
}

View File

@@ -35,7 +35,6 @@ func (step *ActionTaskStep) TakeTime() time.Duration {
if step.Status.IsDone() {
return step.Stopped.AsTime().Sub(started)
}
step.Stopped.AsTime().Sub(started)
return time.Since(started).Truncate(time.Second)
}