mirror of
https://github.com/go-gitea/gitea.git
synced 2025-05-30 03:10:42 +02:00
fix: remove meanless code
This commit is contained in:
parent
215d80f6b2
commit
b03f6e5b65
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user