remove redundant test for nil before add (#8460)

This commit is contained in:
Timothee Cour
2018-08-06 02:50:42 -07:00
committed by Andreas Rumpf
parent 6e3d1dced5
commit 8ad59e6857

View File

@@ -525,8 +525,6 @@ proc checkpoint*(msg: string) =
## checkpoint("Checkpoint B")
##
## outputs "Checkpoint A" once it fails.
if checkpoints == nil:
checkpoints = @[]
checkpoints.add(msg)
# TODO: add support for something like SCOPED_TRACE from Google Test