about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-24 23:04:29 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-24 23:04:29 +0100
commite34eb7093944aac9dac543bcf97b77c868251b10 (patch)
treee189576098d924b723e5ea353cc6eea37a399bb7 /src/html
parentf231ffeffb9bcbffde5429262a13dfad3ea89f5c (diff)
downloadchawan-e34eb7093944aac9dac543bcf97b77c868251b10.tar.gz
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.
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim3
1 files changed, 2 insertions, 1 deletions
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