Use path != "" instead of len check

This commit is contained in:
Zach Smith 2017-06-25 17:40:06 -04:00
commit 2718a8e9d5

View file

@ -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