Skip to content

Commit 53b31d4

Browse files
Fixed typo
1 parent d34aaf9 commit 53b31d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

goso.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func FetchGoogle(conf *Config) (*GoogleSearchResult, error) {
329329
}
330330
res, err := conf.Client.Do(req)
331331
if err != nil {
332-
return nil, fmt.Errorf("failed connecting to Google API: check you internet connection")
332+
return nil, fmt.Errorf("failed connecting to Google API: check your internet connection")
333333
}
334334
defer res.Body.Close()
335335
if res.StatusCode > 299 {
@@ -371,9 +371,8 @@ func FetchStackOverflow(conf *Config, gr *GoogleSearchResult) (map[int]*Result,
371371
Date: dateCreated,
372372
}
373373
}
374-
question_ids := strings.Join(questions, ";")
375374
url := fmt.Sprintf("https://api.stackexchange.com/2.3/questions/%s/answers?order=desc&sort=votes&site=stackoverflow&filter=withbody",
376-
netUrl.QueryEscape(question_ids))
375+
netUrl.QueryEscape(strings.Join(questions, ";")))
377376
req, err := http.NewRequest(http.MethodGet, url, nil)
378377
if err != nil {
379378
return nil, err

0 commit comments

Comments
 (0)