Fix compilation error with nim 1.4.0
This commit is contained in:
parent
f5d0ddf9b8
commit
cad75845db
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ proc parseGraphProfile*(js: JsonNode; username: string): Profile =
|
||||||
|
|
||||||
let user = js{"data", "user", "legacy"}
|
let user = js{"data", "user", "legacy"}
|
||||||
let id = js{"data", "user", "rest_id"}.getStr
|
let id = js{"data", "user", "rest_id"}.getStr
|
||||||
parseProfile(user, id)
|
result = parseProfile(user, id)
|
||||||
|
|
||||||
proc parseGraphList*(js: JsonNode): List =
|
proc parseGraphList*(js: JsonNode): List =
|
||||||
if js.isNull: return
|
if js.isNull: return
|
||||||
|
|
|
@ -15,7 +15,7 @@ template notNull*(js: JsonNode): bool = js.kind != JNull
|
||||||
template `?`*(js: JsonNode): untyped =
|
template `?`*(js: JsonNode): untyped =
|
||||||
let j = js
|
let j = js
|
||||||
if j.isNull: return
|
if j.isNull: return
|
||||||
else: j
|
j
|
||||||
|
|
||||||
template `with`*(ident, value, body): untyped =
|
template `with`*(ident, value, body): untyped =
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in a new issue