Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed May 24, 2024
1 parent 290da52 commit 88a2bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tools/serpapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type request struct {
GoogleDomain string
CountryCode string
LanguageCode string
ApiKey string
APIKey string
}

type response struct {
Expand Down Expand Up @@ -58,7 +58,7 @@ type result struct {
func (r *request) Path() (string, error) {
urlValues := restclientgo.NewURLValues()
urlValues.Add("q", &r.Query)
urlValues.Add("api_key", &r.ApiKey)
urlValues.Add("api_key", &r.APIKey)

if r.GoogleDomain != "" {
urlValues.Add("google_domain", &r.GoogleDomain)
Expand Down
4 changes: 2 additions & 2 deletions tools/serpapi/serpapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (t *Tool) WithLanguageCode(languageCode string) *Tool {
return t
}

func (t *Tool) WithApiKey(apiKey string) *Tool {
func (t *Tool) WithAPIKey(apiKey string) *Tool {
t.apiKey = apiKey
return t
}
Expand All @@ -77,7 +77,7 @@ func (t *Tool) fn(i Input) Output {
GoogleDomain: t.googleDomain,
CountryCode: t.countryCode,
LanguageCode: t.languageCode,
ApiKey: t.apiKey,
APIKey: t.apiKey,
}
res := &response{}

Expand Down

0 comments on commit 88a2bce

Please sign in to comment.