diff --git a/modules/cockroachdb/cockroachdb.go b/modules/cockroachdb/cockroachdb.go index 2d5cebef65..a1130f2fc1 100644 --- a/modules/cockroachdb/cockroachdb.go +++ b/modules/cockroachdb/cockroachdb.go @@ -131,7 +131,6 @@ func (c *CockroachDBContainer) ConnectionConfig(ctx context.Context) (*pgx.ConnC func (c *CockroachDBContainer) TLSConfig() (*tls.Config, error) { if cfg := c.tlsStrategy.TLSConfig(); cfg != nil { return cfg, nil - } return nil, ErrTLSNotEnabled