nit cleanup

This commit is contained in:
StephenButtolph 2020-07-03 17:07:39 -04:00
parent a6317bd60f
commit 18350cf3e3
1 changed files with 3 additions and 5 deletions

View File

@ -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
}