aboutsummaryrefslogtreecommitdiff
path: root/src/main.nim
diff options
context:
space:
mode:
authorBenjamin Shirley-Quirk2020-08-04 22:45:21 +0000
committerBenjamin Shirley-Quirk2020-08-04 22:45:21 +0000
commitc54e6d24b70f21293612449c7a960e64077c5f89 (patch)
tree68d3b8bc1b7aacd2f622ceedb240be9e99300b82 /src/main.nim
parentb8d35dea8fb61ec177ab898b70404338f2ed477b (diff)
refactored collect blocks
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.nim b/src/main.nim
index af22bc0..458ba72 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -12,12 +12,11 @@ import
proc execSudo*(args: seq[Argument]): int =
when NimVersion >= "1.2":
- execResult(sudoPrefix & getAppFilename() &
- (block:collect(newSeq):
+ 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])