summary refs log tree commit diff stats
path: root/tests/manyloc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-22 17:34:16 +0200
committerAraq <rumpf_a@web.de>2018-08-22 17:34:16 +0200
commit78e2b515a220a54cb887e21c0098bcd39ce0d055 (patch)
treea510ad2f4dfd986dfeb2164e1633c2dbcc93e783 /tests/manyloc
parenteeafb1a7207749564876bfd96953c15e4f5a8472 (diff)
downloadNim-78e2b515a220a54cb887e21c0098bcd39ce0d055.tar.gz
make nake test compile again
Diffstat (limited to 'tests/manyloc')
-rw-r--r--tests/manyloc/nake/nake.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manyloc/nake/nake.nim b/tests/manyloc/nake/nake.nim
index fc871cb80..ff3c10a17 100644
--- a/tests/manyloc/nake/nake.nim
+++ b/tests/manyloc/nake/nake.nim
@@ -75,7 +75,7 @@ else:
       of cmdArgument:
         task = key
       else: discard
-    if printTaskList or task.isNil or not(tasks.hasKey(task)):
+    if printTaskList or task.len == 0 or not(tasks.hasKey(task)):
       echo "Available tasks:"
       for name, task in pairs(tasks):
         echo name, " - ", task.desc