Skip to content

Commit

Permalink
Revert "Using errors.Is instead of errors.As for checking dns error"
Browse files Browse the repository at this point in the history
This reverts commit 992a9e3.
  • Loading branch information
sacOO7 committed Aug 22, 2024
1 parent a202171 commit 049151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func isTimeoutOrDnsErr(err error) bool {
}
}
var dnsErr *net.DNSError
return errors.Is(err, dnsErr) // RSC15l1
return errors.As(err, &dnsErr) // RSC15l1
}

func checkValidHTTPResponse(resp *http.Response) error {
Expand Down

0 comments on commit 049151c

Please sign in to comment.