fix: remove meanless code

This commit is contained in:
Jason Song 2022-12-19 18:32:38 +08:00
parent 215d80f6b2
commit b03f6e5b65
No known key found for this signature in database
GPG Key ID: 8402EEEE4511A8B5
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)
}