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/feature/syncinfo.nim | |
parent | cb63408d7d9de91020a7a815216b531fdf944b47 (diff) |
factored out unnecessary NimVersions
Diffstat (limited to 'src/feature/syncinfo.nim')
-rw-r--r-- | src/feature/syncinfo.nim | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/feature/syncinfo.nim b/src/feature/syncinfo.nim index 6b2278d..6f8dda9 100644 --- a/src/feature/syncinfo.nim +++ b/src/feature/syncinfo.nim @@ -131,13 +131,8 @@ proc handleSyncInfo*(args: seq[Argument], config: Config): int = let padding = pacmanInfoStrings.map(s => s.trp).computeMaxLength let pkgInfosTable = pkgInfos.map(i => (i.rpc.toPackageReference, i)).toTable - when NimVersion >= "1.2": - let codes = code & (block:collect(newSeq): - for x in fullTargets: - handleTarget(config, padding, finalArgs, x, x.rpcInfo.map(i => pkgInfosTable.opt(i.toPackageReference)).flatten) - ) - else: - let codes = code & lc[handleTarget(config, padding, finalArgs, x, - x.rpcInfo.map(i => pkgInfosTable.opt(i.toPackageReference)).flatten) | - (x <- fullTargets), int] + let codes = code & (block:collect(newSeq): + for x in fullTargets: + handleTarget(config, padding, finalArgs, x, x.rpcInfo.map(i => pkgInfosTable.opt(i.toPackageReference)).flatten) + ) codes.filter(c => c != 0).optFirst.get(0) |