mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Silence some warnings
This commit is contained in:
parent
155909aa9f
commit
bde3c3662d
9 changed files with 11 additions and 12 deletions
|
|
@ -2,7 +2,7 @@ import strutils, strformat, sequtils, uri, tables, base64
|
|||
import nimcrypto, regex
|
||||
|
||||
var
|
||||
hmacKey = "secretkey"
|
||||
hmacKey {.threadvar.}: string
|
||||
base64Media = false
|
||||
|
||||
const
|
||||
|
|
@ -51,7 +51,7 @@ proc cleanFilename*(filename: string): string =
|
|||
result &= ".png"
|
||||
|
||||
proc filterParams*(params: Table): seq[(string, string)] =
|
||||
let filter = ["name", "id", "list", "referer", "scroll"]
|
||||
const filter = ["name", "id", "list", "referer", "scroll"]
|
||||
toSeq(params.pairs()).filterIt(it[0] notin filter and it[1].len > 0)
|
||||
|
||||
proc isTwitterUrl*(uri: Uri): bool =
|
||||
|
|
|
|||
Loading…
Reference in a new issue