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/main.nim | |
parent | cb63408d7d9de91020a7a815216b531fdf944b47 (diff) |
factored out unnecessary NimVersions
Diffstat (limited to 'src/main.nim')
-rw-r--r-- | src/main.nim | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/main.nim b/src/main.nim index 458ba72..d8ad5a5 100644 --- a/src/main.nim +++ b/src/main.nim @@ -11,16 +11,11 @@ import "feature/syncsource" proc execSudo*(args: seq[Argument]): int = - when NimVersion >= "1.2": - execResult(sudoPrefix & getAppFilename() & (block:collect(newSeq): - for y in args: - for x in y.collectArg: - x - )) - else: - execResult(sudoPrefix & getAppFilename() & - lc[x | (y <- args, x <- y.collectArg), string]) - + execResult(sudoPrefix & getAppFilename() & (block:collect(newSeq): + for y in args: + for x in y.collectArg: + x + )) proc passValidation(args: seq[Argument], config: Config, nonRootArgs: openArray[OptionPair], rootArgs: openArray[OptionPair], opts: varargs[seq[CommandOption]]): int = |