Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed May 2, 2020
1 parent f49713a commit bb4d0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions providers/otx.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ func (o *OTXProvider) Fetch(domain string, results chan<- string) error {
for page := 0; ; page++ {
resp, err := o.MakeRequest(o.formatURL(domain, page))
if err != nil {
return fmt.Errorf("failed to fetch otx resuts page %d: %s", page, err)
return fmt.Errorf("failed to fetch otx results page %d: %s", page, err)
}

var result OTXResult
if err = json.NewDecoder(resp.Body).Decode(&result); err != nil {
_ = resp.Body.Close()
return fmt.Errorf("failed to decode otx resuts for page %d: %s", page, err)
return fmt.Errorf("failed to decode otx results for page %d: %s", page, err)
}

_ = resp.Body.Close()
Expand Down
2 changes: 1 addition & 1 deletion providers/wayback.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (w *WaybackProvider) Fetch(domain string, results chan<- string) error {
var result WaybackResult
if err = json.NewDecoder(resp.Body).Decode(&result); err != nil {
_ = resp.Body.Close()
return fmt.Errorf("failed to decode wayback resuts for page %d: %s", page, err)
return fmt.Errorf("failed to decode wayback results for page %d: %s", page, err)
}

_ = resp.Body.Close()
Expand Down

0 comments on commit bb4d0cd

Please sign in to comment.