Skip to content

Commit

Permalink
chore(env-var): fixed lint issues [#20]
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaulin committed Mar 15, 2024
1 parent 4023c1a commit e0e0a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"edgio/env"
"edgio/org"
"edgio/property"
Variavle "edgio/variables"
"edgio/variable"
"fmt"
"os"
)
Expand Down Expand Up @@ -42,7 +42,7 @@ func main() {
return
}

VariavleClient, err := Variavle.NewClient(common.ClientParams{
VariavleClient, err := variable.NewClient(common.ClientParams{
Credentials: credentials,
Config: common.ClientConfig{AccessToken: orgClient.Client.AccessToken},
})
Expand Down
4 changes: 2 additions & 2 deletions variable/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var VariableListResult = ListResultType{}
// which is the highest value. The idea is to return all environment variables
// until actual pagination is implemented.
// Returns a list of environment variables for a given Environment, or an error if anything goes wrong.
func (c ClientStruct) List(EnvironmentID string) (ListResultType, error) {
func (c ClientStruct) List(environmentID string) (ListResultType, error) {
httpClient := &http.Client{}
serviceURL := c.GetServiceURL(common.URLParams{})

Expand All @@ -30,7 +30,7 @@ func (c ClientStruct) List(EnvironmentID string) (ListResultType, error) {
}

rawQueryString := utils.ToQueryString(
map[string]string{"page_size": "100", "environment_id": EnvironmentID},
map[string]string{"page_size": "100", "environment_id": environmentID},
)

parsedURL.RawQuery = rawQueryString
Expand Down

0 comments on commit e0e0a22

Please sign in to comment.