From c42a55c59f0b2a906a1c7804474b9e96914d10de Mon Sep 17 00:00:00 2001 From: Bart Venter Date: Mon, 19 Aug 2024 14:47:11 +0000 Subject: [PATCH] test(middleware/nethttp): Update `ExampleExtractSubdomain` --- middleware/nethttp/example_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/middleware/nethttp/example_test.go b/middleware/nethttp/example_test.go index d92e065..53a4134 100644 --- a/middleware/nethttp/example_test.go +++ b/middleware/nethttp/example_test.go @@ -17,8 +17,7 @@ func ExampleExtractSubdomain() { for _, subdomain := range subdomains { if sub, err := nethttp.ExtractSubdomain(subdomain); err != nil { - // log.Fatalf("unexpected error for host: %q", subdomain) - fmt.Printf("unexpected error: %v\n", err) + log.Fatalf("unexpected error for host: %q", subdomain) } else { fmt.Println(sub) }