From 44756c0517391fb0f4a275248f553c58ca975c56 Mon Sep 17 00:00:00 2001 From: Dot-Rar Date: Thu, 5 Mar 2020 16:20:03 +0000 Subject: [PATCH] remove redundant type conversion --- utils/discord/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/discord/endpoints.go b/utils/discord/endpoints.go index 17413a1..7bf8718 100644 --- a/utils/discord/endpoints.go +++ b/utils/discord/endpoints.go @@ -81,7 +81,7 @@ func (e *Endpoint) Request(store sessions.Session, contentType *ContentType, bod refreshToken := store.Get("refresh_token").(string) // Check if needs refresh - if (time.Now().UnixNano() / int64(time.Second)) > int64(expiry) { + if (time.Now().UnixNano() / int64(time.Second)) > expiry { res, err := RefreshToken(refreshToken) if err != nil { store.Clear()