Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Fix nil pointer dereference when checking if a unit IsFinished (#2135)
Miccahe498c80b3da8
diff --git a/pkg/sources/job_progress_hook.go b/pkg/sources/job_progress_hook.goindex 1592bcb38..c585ec943 100644--- a/pkg/sources/job_progress_hook.go+++ b/pkg/sources/job_progress_hook.go@@ -185,7 +185,7 @@ type UnitMetrics struct {}func (u UnitMetrics) IsFinished() bool {- return !u.EndTime.IsZero()+ return u.EndTime != nil}// ElapsedTime is a convenience method that provides the elapsed time the job