From 18350cf3e3bdd744214a361532991601488c6b57 Mon Sep 17 00:00:00 2001 From: StephenButtolph Date: Fri, 3 Jul 2020 17:07:39 -0400 Subject: [PATCH] nit cleanup --- snow/engine/common/test_engine.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/snow/engine/common/test_engine.go b/snow/engine/common/test_engine.go index ce44abb..2f4c511 100644 --- a/snow/engine/common/test_engine.go +++ b/snow/engine/common/test_engine.go @@ -363,11 +363,9 @@ func (e *EngineTest) Chits(validatorID ids.ShortID, requestID uint32, containerI func (e *EngineTest) IsBootstrapped() bool { if e.IsBootstrappedF != nil { return e.IsBootstrappedF() - } else if e.CantIsBootstrapped { - if e.T != nil { - e.T.Fatalf("Unexpectedly called IsBootstrapped") - } - return false + } + if e.CantIsBootstrapped && e.T != nil { + e.T.Fatalf("Unexpectedly called IsBootstrapped") } return false }