From 34081e99d07378bb3e338dadaf71bf3bc00ce233 Mon Sep 17 00:00:00 2001 From: Carlana Johnson Date: Tue, 27 Aug 2024 15:48:06 -0400 Subject: [PATCH] Test: Fix missing err != nil (#118) --- reqhtml/html_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reqhtml/html_test.go b/reqhtml/html_test.go index eb04e94..460de6f 100644 --- a/reqhtml/html_test.go +++ b/reqhtml/html_test.go @@ -64,6 +64,9 @@ func ExampleBody() { URL("http://example.com"). Config(reqhtml.Body(&link)). Request(context.Background()) + if err != nil { + panic(err) + } b, err := httputil.DumpRequest(req, true) if err != nil { panic(err)