From a8a2436975da7f8b8319da21f1ca3d93ebff08e8 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Dec 2022 13:22:02 +0100 Subject: OAuth: Minor style changes --- internal/oauth/token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/oauth/token.go') 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) } -- cgit v1.2.3