■ ■ ■ ■ ■ ■
modules/BreachDirectory.go
| skipped 30 lines |
31 | 31 | | req.Header.Add("x-rapidapi-host", "breachdirectory.p.rapidapi.com") |
32 | 32 | | req.Header.Add("x-rapidapi-key", key) |
33 | 33 | | |
34 | | - | res, _ := http.DefaultClient.Do(req) |
| 34 | + | res, err := http.DefaultClient.Do(req) |
| 35 | + | if err != nil { |
| 36 | + | panic(err) |
| 37 | + | } |
35 | 38 | | |
36 | 39 | | defer res.Body.Close() |
37 | 40 | | body, _ := ioutil.ReadAll(res.Body) |
| skipped 5 lines |