Remove unnecessary check
This commit is contained in:
parent
5f930c7f5a
commit
60ace9c65a
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ macro with*(obj: typed, code: untyped): untyped =
|
||||||
|
|
||||||
# Simply inject obj into call
|
# Simply inject obj into call
|
||||||
for i in 0 ..< result.len:
|
for i in 0 ..< result.len:
|
||||||
if result[i].kind in {nnkCommand, nnkCall} and $result[i][0].toStrLit != "assert":
|
if result[i].kind in {nnkCommand, nnkCall}:
|
||||||
result[i].insert(1, obj)
|
result[i].insert(1, obj)
|
||||||
|
|
||||||
result = getAst(checkCompiles(result, code))
|
result = getAst(checkCompiles(result, code))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue