Fix indentation bug
This commit is contained in:
parent
5f746706b6
commit
a6b31247cf
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "3.1.0" # versioned in git, this version is just to confuse nimble
|
||||
version = "3.2.0" # versioned in git, this version is just to confuse nimble
|
||||
author = "Emery Hemingway"
|
||||
description = "data model and serialization format"
|
||||
license = "Unlicense"
|
||||
|
|
|
@ -245,7 +245,7 @@ proc `[]`*(pr, key: Preserve): Preserve =
|
|||
if pr.isDictionary:
|
||||
for (k, v) in pr.dict.items:
|
||||
if k == key: return v
|
||||
raise newException(KeyError, "value not in Preserves dictionary")
|
||||
raise newException(KeyError, "value not in Preserves dictionary")
|
||||
elif (pr.isRecord or pr.isSequence) and key.isInteger:
|
||||
result = pr[int key.int]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue