diff options
author | Benjamin Shirley-Quirk | 2020-08-05 01:14:46 +0000 |
---|---|---|
committer | Benjamin Shirley-Quirk | 2020-08-05 01:14:46 +0000 |
commit | 4bbf3dc2097f1de206fa053fac32f675d4ae2927 (patch) | |
tree | 721da2b78793860b6fb020194efe2eccea88bac9 /src/format.nim | |
parent | cb63408d7d9de91020a7a815216b531fdf944b47 (diff) |
factored out unnecessary NimVersions
Diffstat (limited to 'src/format.nim')
-rw-r--r-- | src/format.nim | 11 |
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) |