Don't release empty tokens

This commit is contained in:
Zed 2021-01-25 11:07:20 +01:00
parent 67142bea6a
commit 4a38b270af
1 changed files with 0 additions and 1 deletions

View File

@ -37,7 +37,6 @@ proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =
var token = await getToken() var token = await getToken()
if token.tok.len == 0: if token.tok.len == 0:
release(token, true)
raise rateLimitError() raise rateLimitError()
let headers = genHeaders(token) let headers = genHeaders(token)