summaryrefslogtreecommitdiff
path: root/internal/oauth/token.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-12 13:22:02 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-12-12 13:39:20 +0100
commita8a2436975da7f8b8319da21f1ca3d93ebff08e8 (patch)
treecafb8ea807e66fe57c612883fa0c726cb429c7ac /internal/oauth/token.go
parent978b9b3eea99d58ad95692c35be15e27608a16ee (diff)
OAuth: Minor style changes
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)
}