From 74f60f7534a2e2ea531eac2cef6e6636b366c9d2 Mon Sep 17 00:00:00 2001 From: David Wolfe Date: Thu, 7 Nov 2024 10:08:37 -0800 Subject: [PATCH] DUPLO-26089 fix two more lint issues --- internal/cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/cache.go b/internal/cache.go index 51e3e59..21342fa 100644 --- a/internal/cache.go +++ b/internal/cache.go @@ -98,7 +98,7 @@ func CacheGetAwsConfigOutput(cacheKey string) (creds *AwsConfigOutput) { // Check credentials for expiry. if creds != nil { - five_minutes_from_now := time.Now().UTC().Add(5 * time.Minute) + fiveMinutesFromNow := time.Now().UTC().Add(5 * time.Minute) expiration, err := time.Parse(time.RFC3339, creds.Expiration) // Invalid expiration? @@ -107,7 +107,7 @@ func CacheGetAwsConfigOutput(cacheKey string) (creds *AwsConfigOutput) { creds = nil // Expires in five minutes or less? - } else if five_minutes_from_now.After(expiration) { + } else if fiveMinutesFromNow.After(expiration) { creds = nil } } @@ -189,9 +189,9 @@ func CacheGetK8sConfigOutput(cacheKey string, tenantName string) (creds *clienta // Check credentials for expiry. if creds != nil { // Expires in five minutes or less? - five_minutes_from_now := time.Now().UTC().Add(5 * time.Minute) + fiveMinutesFromNow := time.Now().UTC().Add(5 * time.Minute) expiration := creds.Status.ExpirationTimestamp.Time - if five_minutes_from_now.After(expiration) { + if fiveMinutesFromNow.After(expiration) { creds = nil } }