Skip to content

Commit

Permalink
Don't release empty tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jan 25, 2021
1 parent 67142be commit 4a38b27
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/apiutils.nim
Expand Up @@ -37,7 +37,6 @@ proc fetch*(url: Uri; oldApi=false): Future[JsonNode] {.async.} =

var token = await getToken()
if token.tok.len == 0:
release(token, true)
raise rateLimitError()

let headers = genHeaders(token)
Expand Down

0 comments on commit 4a38b27

Please sign in to comment.