summaryrefslogtreecommitdiff
path: root/internal/oauth/token.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/oauth/token.go')
-rw-r--r--internal/oauth/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/oauth/token.go b/internal/oauth/token.go
index bd17647..31c2c74 100644
--- a/internal/oauth/token.go
+++ b/internal/oauth/token.go
@@ -31,6 +31,6 @@ type Token struct {
// Expired checks if the access token is expired.
func (tokens *Token) Expired() bool {
- currentTime := time.Now()
- return !currentTime.Before(tokens.expiredTimestamp)
+ now := time.Now()
+ return !now.Before(tokens.expiredTimestamp)
}