Skip to content

Commit

Permalink
chore: fix golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jun 4, 2022
1 parent 74fb9f0 commit 1980be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 1980be0

Please sign in to comment.