Skip to content

Commit

Permalink
chore: patch linter
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink committed Feb 27, 2024
1 parent 69c66ae commit 9286729
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 {
}

Check warning on line 105 in httpClient.go

View check run for this annotation

Codecov / codecov/patch

httpClient.go#L105

Added line #L105 was not covered by tests

// 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 9286729

Please sign in to comment.