From e34eb7093944aac9dac543bcf97b77c868251b10 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 24 Dec 2023 23:04:29 +0100 Subject: Fix warnings on Nim 2.0.2 One is a false-positive (in dom). The other one in pager is something I hadn't noticed before, that's nice. For now I want to avoid making a change that may break things, so I just removed the dead code. --- src/html/dom.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/html') diff --git a/src/html/dom.nim b/src/html/dom.nim index faf3416a..9aca72e2 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -1878,7 +1878,8 @@ func crossOrigin0(element: HTMLElement): CORSAttribute = return ANONYMOUS of "use-credentials": return USE_CREDENTIALS - return ANONYMOUS + else: + return ANONYMOUS func crossOrigin(element: HTMLScriptElement): CORSAttribute {.jsfget.} = return element.crossOrigin0 -- cgit 1.4.1-2-gfad0