summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--lib/system.nim5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 001eb19de..d61924a5b 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2530,10 +2530,7 @@ proc `$`*[T](x: seq[T]): string =
   ##
   ## .. code-block:: nim
   ##   $(@[23, 45]) == "@[23, 45]"
-  if x.isNil:
-    "nil"
-  else:
-    collectionToString(x, "@[", ", ", "]")
+  collectionToString(x, "@[", ", ", "]")
 
 # ----------------- GC interface ---------------------------------------------