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": of "path":
case currentSection.normalize case currentSection.normalize
of "packagelist": 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.") raise newException(NimbleError, "Attempted to specify more than one `path` for the same package list.")
else: else:
currentPackageList.path = e.value.normalize currentPackageList.path = e.value.normalize