summary refs log tree commit diff stats
path: root/lib/pure/htmlgen.nim
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-02-17 12:26:08 -0600
committerGitHub <noreply@github.com>2021-02-17 19:26:08 +0100
commit8d63f7b4831ccdadc3f119526b5b82db064aade7 (patch)
tree8161e3d12618f78f84cc62d1a4734c71eceac515 /lib/pure/htmlgen.nim
parent98102605d911171d79cf66327dee100cc2c8e05d (diff)
downloadNim-8d63f7b4831ccdadc3f119526b5b82db064aade7.tar.gz
clean up old codes (#17071)
Diffstat (limited to 'lib/pure/htmlgen.nim')
-rw-r--r--lib/pure/htmlgen.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim
index acec05832..7bff69774 100644
--- a/lib/pure/htmlgen.nim
+++ b/lib/pure/htmlgen.nim
@@ -113,10 +113,7 @@ proc xmlCheckedTag*(argsList: NimNode, tag: string, optAttr = "", reqAttr = "",
     result.add(newStrLitNode("</"))
     result.add(newStrLitNode(tag))
     result.add(newStrLitNode(">"))
-  when compiles(nestList(ident"&", result)):
-    result = nestList(ident"&", result)
-  else:
-    result = nestList(!"&", result)
+  result = nestList(ident"&", result)
 
 macro a*(e: varargs[untyped]): untyped =
   ## Generates the HTML ``a`` element.