Skip to content

Commit

Permalink
remove unneeded if
Browse files Browse the repository at this point in the history
  • Loading branch information
SVilgelm committed Oct 2, 2023
1 parent 40fde0a commit 402986b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ func parseRequestURL(c *Client, r *Request) error {

// GitHub #103 Path Params
for p, v := range r.PathParams {
if _, ok := params[p]; !ok {
params[p] = url.PathEscape(v)
}
params[p] = url.PathEscape(v)
}
for p, v := range c.PathParams {
if _, ok := params[p]; !ok {
Expand Down

0 comments on commit 402986b

Please sign in to comment.