Remove unnecessary check

This commit is contained in:
Joey Yakimowich-Payne 2020-02-21 13:37:44 -07:00 • committed by Andreas Rumpf
commit 60ace9c65a

View file

@ -19,7 +19,7 @@ macro with*(obj: typed, code: untyped): untyped =
# Simply inject obj into call
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 = getAst(checkCompiles(result, code))