Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
remove duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Feb 17, 2022
1 parent 99545c3 commit a09a5bc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apiclient/bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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)
Expand Down

0 comments on commit a09a5bc

Please sign in to comment.