diff --git a/components/playground/playground.go b/components/playground/playground.go index 7677d1f824..630fab3a2d 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -883,6 +883,7 @@ func (p *Playground) waitAllTiFlashUp() { } func (p *Playground) bindVersion(comp string, version string) (bindVersion string) { + bindVersion = version switch comp { case spec.ComponentTiKVCDC: bindVersion = p.bootOptions.TiKVCDC.Version @@ -890,9 +891,6 @@ func (p *Playground) bindVersion(comp string, version string) (bindVersion strin bindVersion = p.bootOptions.TiProxy.Version default: } - if bindVersion == "" { - bindVersion = version - } return }