aboutsummaryrefslogtreecommitdiff
path: root/src/format.nim
diff options
context:
space:
mode:
authorBenjamin Shirley-Quirk2020-08-05 01:14:46 +0000
committerBenjamin Shirley-Quirk2020-08-05 01:14:46 +0000
commit4bbf3dc2097f1de206fa053fac32f675d4ae2927 (patch)
tree721da2b78793860b6fb020194efe2eccea88bac9 /src/format.nim
parentcb63408d7d9de91020a7a815216b531fdf944b47 (diff)
factored out unnecessary NimVersions
Diffstat (limited to 'src/format.nim')
-rw-r--r--src/format.nim11
1 files changed, 4 insertions, 7 deletions
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)