Fix minor bug
This commit is contained in:
parent
6272297d64
commit
02557b67c3
2 changed files with 5 additions and 5 deletions
|
@ -28,13 +28,13 @@ template `?`*(js: JsonNode): untyped =
|
||||||
if j.isNull: return
|
if j.isNull: return
|
||||||
j
|
j
|
||||||
|
|
||||||
template `with`*(ident, value, body): untyped =
|
template with*(ident, value, body): untyped =
|
||||||
block:
|
if true:
|
||||||
let ident {.inject.} = value
|
let ident {.inject.} = value
|
||||||
if ident != nil: body
|
if ident != nil: body
|
||||||
|
|
||||||
template `with`*(ident; value: JsonNode; body): untyped =
|
template with*(ident; value: JsonNode; body): untyped =
|
||||||
block:
|
if true:
|
||||||
let ident {.inject.} = value
|
let ident {.inject.} = value
|
||||||
if value.notNull: body
|
if value.notNull: body
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
# SPDX-License-Identifier: AGPL-3.0-only
|
||||||
import asyncdispatch, strutils, strformat, tables, times, hashes, uri
|
import asyncdispatch, tables, times, hashes, uri
|
||||||
|
|
||||||
import jester
|
import jester
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue