From 4f3fbf89fdbc4aa7f9a318a34581a6c6bc96289f Mon Sep 17 00:00:00 2001 From: lucklove Date: Mon, 22 Feb 2021 19:27:25 +0800 Subject: [PATCH] Fmt --- components/dm/spec/bindversion.go | 4 +++- pkg/cluster/spec/bindversion.go | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/dm/spec/bindversion.go b/components/dm/spec/bindversion.go index 5b532c48df..5464c952dc 100644 --- a/components/dm/spec/bindversion.go +++ b/components/dm/spec/bindversion.go @@ -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 diff --git a/pkg/cluster/spec/bindversion.go b/pkg/cluster/spec/bindversion.go index e1ae82aa37..61be4e8212 100644 --- a/pkg/cluster/spec/bindversion.go +++ b/pkg/cluster/spec/bindversion.go @@ -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