mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 20:04:18 +00:00
remove redundant test for nil before add (#8460)
This commit is contained in:
committed by
Andreas Rumpf
parent
6e3d1dced5
commit
8ad59e6857
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user