diff --git a/pkg/cmd/roachtest/test_runner.go b/pkg/cmd/roachtest/test_runner.go index d35b5e6c0b26..da43397c66d1 100644 --- a/pkg/cmd/roachtest/test_runner.go +++ b/pkg/cmd/roachtest/test_runner.go @@ -366,7 +366,7 @@ func defaultClusterAllocator( if err == nil { return c, nil } - if err != nil && !errors.Is(err, errClusterNotFound) { + if !errors.Is(err, errClusterNotFound) { return nil, err } // Fall through to create new cluster with name override.