1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-26 20:28:40 +00:00

Update models/actions/run.go

Co-authored-by: a1012112796 <1012112796@qq.com>
This commit is contained in:
Jason Song
2022-12-19 18:30:16 +08:00
committed by GitHub
parent ab98c3ff43
commit 215d80f6b2

View File

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