From 2718a8e9d5d433d81a7317ba0e5e28fc153ced5d Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Sun, 25 Jun 2017 17:40:06 -0400 Subject: [PATCH] Use path != "" instead of len check --- src/nimblepkg/config.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimblepkg/config.nim b/src/nimblepkg/config.nim index 4f2ab1b..ce62ef8 100644 --- a/src/nimblepkg/config.nim +++ b/src/nimblepkg/config.nim @@ -105,7 +105,7 @@ proc parseConfig*(): Config = of "path": case currentSection.normalize of "packagelist": - if currentPackageList.path.len > 0: + if currentPackageList.path != "": raise newException(NimbleError, "Attempted to specify more than one `path` for the same package list.") else: currentPackageList.path = e.value.normalize