From 6d91f0cbd561493771c18f1e78795d83f83952e7 Mon Sep 17 00:00:00 2001 From: Kevin Fox Date: Sat, 26 Oct 2024 09:00:03 -0700 Subject: [PATCH] Fix lint Signed-off-by: Kevin Fox --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 5aeb371..d73dcab 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -41,7 +41,7 @@ func main() { log.Fatal(err) } - d := svid.Expiry.Sub(time.Now()) / 2 + d := time.Until(svid.Expiry) / 2 expiry, err := metav1.NewTime(svid.Expiry.Add(d)).MarshalJSON() if err != nil { log.Fatal(err)