Skip to content

Commit

Permalink
test(middleware/nethttp): Update ExampleExtractSubdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Aug 19, 2024
1 parent 88ca9e7 commit c42a55c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions middleware/nethttp/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c42a55c

Please sign in to comment.