Skip to content

Commit a549ebd

Browse files
authored
[cherry-pick] make fmt (#579) (#581)
/cherry-pick Signed-off-by: 1gtm <1gtm@appscode.com>
1 parent 1fefc3d commit a549ebd

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

pkg/backup.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func NewCmdBackup() *cobra.Command {
4545
masterURL string
4646
kubeconfigPath string
4747
opt = mysqlOptions{
48-
4948
myArgs: "--all-databases",
5049
setupOptions: restic.SetupOptions{
5150
ScratchDir: restic.DefaultScratchDir,
@@ -113,7 +112,6 @@ func NewCmdBackup() *cobra.Command {
113112
}
114113

115114
return nil
116-
117115
},
118116
}
119117

@@ -155,7 +153,6 @@ func NewCmdBackup() *cobra.Command {
155153
}
156154

157155
func (opt *mysqlOptions) backupMySQL(targetRef api_v1beta1.TargetRef) (*restic.BackupOutput, error) {
158-
159156
var err error
160157
opt.setupOptions.StorageSecret, err = opt.kubeClient.CoreV1().Secrets(opt.storageSecret.Namespace).Get(context.TODO(), opt.storageSecret.Name, metav1.GetOptions{})
161158
if err != nil {

pkg/restore.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func NewCmdRestore() *cobra.Command {
134134
}
135135

136136
func (opt *mysqlOptions) restoreMySQL(targetRef api_v1beta1.TargetRef) (*restic.RestoreOutput, error) {
137-
138137
var err error
139138
opt.setupOptions.StorageSecret, err = opt.kubeClient.CoreV1().Secrets(opt.storageSecret.Namespace).Get(context.TODO(), opt.storageSecret.Name, metav1.GetOptions{})
140139
if err != nil {

pkg/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var SupportedProducts = []string{"stash-enterprise", "kubedb-ext-stash"}
2929
var licenseApiService string
3030

3131
func NewRootCmd() *cobra.Command {
32-
var rootCmd = &cobra.Command{
32+
rootCmd := &cobra.Command{
3333
Use: "stash-mysql",
3434
Short: `MySQL backup & restore plugin for Stash by AppsCode`,
3535
Long: `MySQL backup & restore plugin for Stash by AppsCode. For more information, visit here: https://appscode.com/products/stash`,

0 commit comments

Comments
 (0)