mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-22 08:34:05 +09:00
fix: remove meanless code
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user