remove redundant test for nil before add (#8460)
This commit is contained in:
parent
6e3d1dced5
commit
8ad59e6857
1 changed files with 0 additions and 2 deletions
|
|
@ -525,8 +525,6 @@ proc checkpoint*(msg: string) =
|
||||||
## checkpoint("Checkpoint B")
|
## checkpoint("Checkpoint B")
|
||||||
##
|
##
|
||||||
## outputs "Checkpoint A" once it fails.
|
## outputs "Checkpoint A" once it fails.
|
||||||
if checkpoints == nil:
|
|
||||||
checkpoints = @[]
|
|
||||||
checkpoints.add(msg)
|
checkpoints.add(msg)
|
||||||
# TODO: add support for something like SCOPED_TRACE from Google Test
|
# TODO: add support for something like SCOPED_TRACE from Google Test
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue