Skip to content

Commit

Permalink
chore: fix linting errors #137
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Oct 3, 2023
1 parent fb6cf45 commit 0e5e6ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/provision/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ package provision

import (
"fmt"
"regexp"

"internal/apiclient"
"internal/client/provision"
"regexp"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 0 additions & 2 deletions internal/client/integrations/integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,6 @@ func GetSfdcInstances(integration []byte) (instances map[string]string, err erro

// GetConnections
func GetConnections(integration []byte) (connections []string, err error) {

iversion := integrationVersion{}

err = json.Unmarshal(integration, &iversion)
Expand All @@ -779,7 +778,6 @@ func GetConnections(integration []byte) (connections []string, err error) {

// GetConnectionsWithRegion
func GetConnectionsWithRegion(integration []byte) (connections []integrationConnection, err error) {

iversion := integrationVersion{}

err = json.Unmarshal(integration, &iversion)
Expand Down
4 changes: 2 additions & 2 deletions internal/client/provision/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ package provision

import (
"fmt"
"internal/apiclient"
"net/url"
"path"
"strconv"
"strings"

"internal/apiclient"
)

// Provision
Expand All @@ -43,7 +44,6 @@ func Provision(cloudkms string, samples bool, gmek bool, serviceAccount string)
u.Path = path.Join(u.Path, "client:provision")

payload := "{" + strings.Join(provStr, ",") + "}"
fmt.Println(payload)
respBody, err = apiclient.HttpClient(u.String(), payload)
return respBody, err
}
Expand Down

0 comments on commit 0e5e6ff

Please sign in to comment.