remove redundant type conversion

This commit is contained in:
Dot-Rar 2020-03-05 16:20:03 +00:00
parent 39b7f29ecc
commit 44756c0517

View File

@ -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()