Skip to content

Commit

Permalink
core_url: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Feb 24, 2024
1 parent 64cd8aa commit b13916e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core_url.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func (ub *urlBuilder) URL() (u *url.URL, err error) {
}
}
for _, kv := range ub.params {
if kv.optional && minitrue.Or(q[kv.key]...) == "" {
if kv.optional && q.Get(kv.key) == "" {
q[kv.key] = kv.values
}
}
Expand Down

0 comments on commit b13916e

Please sign in to comment.