aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.nim
parentcb63408d7d9de91020a7a815216b531fdf944b47 (diff)
factored out unnecessary NimVersions
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim15
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 =