From 2205beab1ccaf550e155a7058bb3d7e79263d468 Mon Sep 17 00:00:00 2001 From: dougfales Date: Mon, 11 Nov 2019 14:11:12 -0700 Subject: [PATCH] Remove unnecessary if. --- pkg/sidecar/appclone.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/sidecar/appclone.go b/pkg/sidecar/appclone.go index c7318e475..e029493f1 100644 --- a/pkg/sidecar/appclone.go +++ b/pkg/sidecar/appclone.go @@ -91,11 +91,7 @@ func RunCloneCommand(cfg *Config) error { } // prepare backup - if err := xtrabackupPrepareData(); err != nil { - return err - } - - return nil + return xtrabackupPrepareData() } func isServiceAvailable(svc string) bool {