From f0247212478f17eeec2bd1e89665585aec90e965 Mon Sep 17 00:00:00 2001 From: Daniel Tam Date: Fri, 28 Jul 2023 10:51:53 +0900 Subject: [PATCH] fix: remove non idiomatic map access --- session.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/session.go b/session.go index 10d856924..9c810cd9a 100644 --- a/session.go +++ b/session.go @@ -52,9 +52,6 @@ func (s *DefaultSession) GetExpiresAt(key TokenType) time.Time { s.ExpiresAt = make(map[TokenType]time.Time) } - if _, ok := s.ExpiresAt[key]; !ok { - return time.Time{} - } return s.ExpiresAt[key] }