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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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