From 215d80f6b2a86fd28a1e998e9a0e43866553aee0 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Mon, 19 Dec 2022 18:30:16 +0800 Subject: [PATCH] Update models/actions/run.go Co-authored-by: a1012112796 <1012112796@qq.com> --- models/actions/run.go | 1 - 1 file changed, 1 deletion(-) diff --git a/models/actions/run.go b/models/actions/run.go index 14b14fe785..1299375f47 100644 --- a/models/actions/run.go +++ b/models/actions/run.go @@ -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) }