Skip to content

Commit

Permalink
fix: remove non idiomatic map access
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam-cybozu committed Nov 10, 2023
1 parent 44fd2cc commit f024721
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}

Expand Down

0 comments on commit f024721

Please sign in to comment.