diff --git a/lib/system.nim b/lib/system.nim index 001eb19de9..d61924a5b1 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 ---------------------------------------------