From a09a5bc6526912788e18c6c227f4ecd2a11c0f1d Mon Sep 17 00:00:00 2001 From: srinandan Date: Thu, 17 Feb 2022 09:45:47 -0800 Subject: [PATCH] remove duplicate --- apiclient/bundles.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apiclient/bundles.go b/apiclient/bundles.go index c56bf647..20b83983 100644 --- a/apiclient/bundles.go +++ b/apiclient/bundles.go @@ -242,6 +242,7 @@ func ImportBundleAsync(entityType string, name string, bundlePath string, wg *sy func ImportBundle(entityType string, name string, bundlePath string) error { err := ReadBundle(bundlePath) if err != nil { + clilog.Error.Println(err) return err } @@ -260,12 +261,6 @@ func ImportBundle(entityType string, name string, bundlePath string) error { q.Set("action", "import") u.RawQuery = q.Encode() - err = ReadBundle(bundlePath) - if err != nil { - clilog.Error.Println(err) - return err - } - _, err = PostHttpOctet(true, false, u.String(), bundlePath) if err != nil { clilog.Error.Println(err)