diff --git a/crtutil/tmpl/funcs.go b/crtutil/tmpl/funcs.go index c530f14..9aa3f1a 100644 --- a/crtutil/tmpl/funcs.go +++ b/crtutil/tmpl/funcs.go @@ -161,9 +161,8 @@ func NotAfter(end time.Time) string { return ColorizeTimeString(end, "red") } else if end.Before(threshold) { return ColorizeTimeString(end, "yellow") - } else { - return ColorizeTimeString(end, "green") } + return ColorizeTimeString(end, "green") } // KeyUsage returns key usage string from a certificate.