Use path != "" instead of len check
This commit is contained in:
parent
f2836e5a5c
commit
2718a8e9d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue