Skip to content

Commit 3ca2d02

Browse files
committed
Revert setting the client for each sling request in metadata
1 parent 7adb616 commit 3ca2d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/metadata.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (api *API) ValidatePlan(name string) error {
2323
path = "api/plans"
2424
)
2525

26-
response, err := api.sling.New().Client(api.client).Get(path).Receive(&data, &failed)
26+
response, err := api.sling.New().Get(path).Receive(&data, &failed)
2727
if err != nil {
2828
return err
2929
}
@@ -88,7 +88,7 @@ func (api *API) ValidateRegion(region string) error {
8888
platform string
8989
)
9090

91-
response, err := api.sling.New().Client(api.client).Get(path).Receive(&data, &failed)
91+
response, err := api.sling.New().Get(path).Receive(&data, &failed)
9292
if err != nil {
9393
return err
9494
}

0 commit comments

Comments
 (0)