From 4bbf3dc2097f1de206fa053fac32f675d4ae2927 Mon Sep 17 00:00:00 2001 From: Benjamin Shirley-Quirk Date: Wed, 5 Aug 2020 02:14:46 +0100 Subject: factored out unnecessary NimVersions --- src/format.nim | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/format.nim') diff --git a/src/format.nim b/src/format.nim index f4255fb..bd6d393 100644 --- a/src/format.nim +++ b/src/format.nim @@ -110,13 +110,10 @@ proc printPackageInfo*(minPadding: int, color: bool, lines: varargs[PackageLineF if values.len == 0: @[] elif forceBreak: - when NimVersion > "1.2": - collect(newSeq): - for y in values.map(s => strutils.strip(s).splitLines(lineSize)): - for x in y: - x - else: - lc[x | (y <- values.map(s => strutils.strip(s).splitLines(lineSize)), x <- y), string] + collect(newSeq): + for y in values.map(s => strutils.strip(s).splitLines(lineSize)): + for x in y: + x else: values.map(v => strutils.strip(v)).foldl(a & " " & b).splitLines(lineSize) -- cgit v1.2.3-70-g09d2