Skip to content

Commit dcc451b

Browse files
chore: remove unnecessary error check for url parsing
1 parent 5ec43c4 commit dcc451b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/requestconfig/requestconfig.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ func NewRequestConfig(ctx context.Context, method string, u string, body interfa
118118
hasSerializationFunc = true
119119
params := body.URLQuery().Encode()
120120
if params != "" {
121-
parsed, err := url.Parse(u)
122-
if err != nil {
123-
return nil, err
124-
}
121+
parsed, _ := url.Parse(u)
125122
if parsed.RawQuery != "" {
126123
parsed.RawQuery = parsed.RawQuery + "&" + params
127124
u = parsed.String()

0 commit comments

Comments
 (0)