From e16bcac4d101edbff60dba89d24144130a46ca35 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Tue, 1 Mar 2022 06:16:14 -0800 Subject: [PATCH] [cherry-pick] make fmt (#1438) (#1450) /cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com> --- pkg/backup.go | 2 +- pkg/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/backup.go b/pkg/backup.go index ce8455070..bf7b3ca3b 100644 --- a/pkg/backup.go +++ b/pkg/backup.go @@ -534,7 +534,7 @@ func getPrimaryNSecondaryMember(mongoDSN string) (primary, secondary string, err klog.Infoln("finding primary and secondary instances of", mongoDSN) v := make(map[string]interface{}) - //stop balancer + // stop balancer args := append([]interface{}{ "config", "--host", mongoDSN, diff --git a/pkg/root.go b/pkg/root.go index 755357730..81d8e6c3c 100644 --- a/pkg/root.go +++ b/pkg/root.go @@ -29,7 +29,7 @@ var SupportedProducts = []string{"stash-enterprise", "kubedb-ext-stash"} var licenseApiService string func NewRootCmd() *cobra.Command { - var rootCmd = &cobra.Command{ + rootCmd := &cobra.Command{ Use: "stash-mongodb", Short: `MongoDB backup & restore plugin for Stash by AppsCode`, Long: `MongoDB backup & restore plugin for Stash by AppsCode. For more information, visit here: https://appscode.com/products/stash`,