Skip to content

Commit

Permalink
chore(optimize): the ShouldBindUri method of the Context struct (#3911)
Browse files Browse the repository at this point in the history
Co-authored-by: huangzw <huangzw@hsmap.com>
  • Loading branch information
1911860538 and huangzw authored Apr 1, 2024
1 parent 7a865dc commit c964ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ func (c *Context) ShouldBindHeader(obj any) error {

// ShouldBindUri binds the passed struct pointer using the specified binding engine.
func (c *Context) ShouldBindUri(obj any) error {
m := make(map[string][]string)
m := make(map[string][]string, len(c.Params))
for _, v := range c.Params {
m[v.Key] = []string{v.Value}
}
Expand Down

0 comments on commit c964ad3

Please sign in to comment.