Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklove committed Feb 22, 2021
1 parent 2560a98 commit 4f3fbf8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion components/dm/spec/bindversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import "github.com/pingcap/tiup/pkg/cluster/spec"
// Empty version means the latest stable one
func DMComponentVersion(comp, version string) string {
switch comp {
case spec.ComponentAlertmanager, spec.ComponentGrafana, spec.ComponentPrometheus:
case spec.ComponentAlertmanager,
spec.ComponentGrafana,
spec.ComponentPrometheus:
return ""
default:
return version
Expand Down
8 changes: 7 additions & 1 deletion pkg/cluster/spec/bindversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ import (
// Empty version should be treate as the the last stable one
func TiDBComponentVersion(comp, version string) string {
switch comp {
case ComponentAlertmanager, ComponentBlackboxExporter, ComponentNodeExporter, ComponentPushwaygate, ComponentCheckCollector, ComponentSpark, ComponentTiSpark:
case ComponentAlertmanager,
ComponentBlackboxExporter,
ComponentNodeExporter,
ComponentPushwaygate,
ComponentCheckCollector,
ComponentSpark,
ComponentTiSpark:
return ""
default:
return version
Expand Down

0 comments on commit 4f3fbf8

Please sign in to comment.