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