mirror of
https://github.com/go-gitea/gitea
synced 2025-07-27 04:38:36 +00:00
fix: remove meanless code
This commit is contained in:
@@ -82,7 +82,6 @@ func (task *ActionTask) TakeTime() time.Duration {
|
|||||||
if task.Status.IsDone() {
|
if task.Status.IsDone() {
|
||||||
return task.Stopped.AsTime().Sub(started)
|
return task.Stopped.AsTime().Sub(started)
|
||||||
}
|
}
|
||||||
task.Stopped.AsTime().Sub(started)
|
|
||||||
return time.Since(started).Truncate(time.Second)
|
return time.Since(started).Truncate(time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -35,7 +35,6 @@ func (step *ActionTaskStep) TakeTime() time.Duration {
|
|||||||
if step.Status.IsDone() {
|
if step.Status.IsDone() {
|
||||||
return step.Stopped.AsTime().Sub(started)
|
return step.Stopped.AsTime().Sub(started)
|
||||||
}
|
}
|
||||||
step.Stopped.AsTime().Sub(started)
|
|
||||||
return time.Since(started).Truncate(time.Second)
|
return time.Since(started).Truncate(time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user