From 1980be0f9f2be1e60fb4b6475820e4bbd9110708 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Sat, 4 Jun 2022 10:50:58 +0300 Subject: [PATCH] chore: fix golangci-lint --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 521594b..a6567ef 100644 --- a/error.go +++ b/error.go @@ -91,7 +91,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool { if allowTimeout { if netErr, ok := err.(net.Error); ok && netErr.Timeout() { - return !netErr.Temporary() + return false } }