Skip to content

Commit

Permalink
Merge pull request #463 from xmidt-org/denopink/patch/linter
Browse files Browse the repository at this point in the history
chore: patch linter
  • Loading branch information
denopink authored Feb 27, 2024
2 parents 69c66ae + 9286729 commit 9a92906
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion httpClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ func getDoErrReason(err error) string {
return opErrReason
} else if errors.Is(err, net.UnknownNetworkError("")) {
return networkErrReason
} else if err, ok := err.(*url.Error); ok {
}

// nolint: errorlint
if err, ok := err.(*url.Error); ok {
if strings.TrimSpace(strings.ToLower(err.Unwrap().Error())) == "eof" {
return connectionUnexpectedlyClosedEOFReason
}
Expand Down

0 comments on commit 9a92906

Please sign in to comment.