Quellcode durchsuchen

Fix compilation error with nim 1.4.0

SolitudeSF vor 5 Jahren
Ursprung
Commit
cad75845db
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/parser.nim
  2. 1 1
      src/parserutils.nim

+ 1 - 1
src/parser.nim

@@ -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

+ 1 - 1
src/parserutils.nim

@@ -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: