Skip to content
Snippets Groups Projects
Commit cad75845 authored by SolitudeSF's avatar SolitudeSF Committed by Zed
Browse files

Fix compilation error with nim 1.4.0

parent f5d0ddf9
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ proc parseGraphProfile*(js: JsonNode; username: string): Profile =
let user = js{"data", "user", "legacy"}
let id = js{"data", "user", "rest_id"}.getStr
parseProfile(user, id)
result = parseProfile(user, id)
proc parseGraphList*(js: JsonNode): List =
if js.isNull: return
......
......@@ -15,7 +15,7 @@ template notNull*(js: JsonNode): bool = js.kind != JNull
template `?`*(js: JsonNode): untyped =
let j = js
if j.isNull: return
else: j
j
template `with`*(ident, value, body): untyped =
block:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment