diff --git a/repo_test.go b/repo_test.go index 43f3a10b..3386d7a3 100644 --- a/repo_test.go +++ b/repo_test.go @@ -29,7 +29,10 @@ func testList(t *testing.T, list *goquery.Selection) { } func readme() []byte { - input, _ := ioutil.ReadFile("./README.md") + input, err := ioutil.ReadFile("./README.md") + if err != nil { + panic(err) + } html := append([]byte(""), blackfriday.MarkdownCommon(input)...) html = append(html, []byte("")...) return html @@ -37,7 +40,10 @@ func readme() []byte { func startQuery() *goquery.Document { buf := bytes.NewBuffer(readme()) - query, _ := goquery.NewDocumentFromReader(buf) + query, err := goquery.NewDocumentFromReader(buf) + if err != nil { + panic(err) + } return query }