Skip to content

Commit 4f82413

Browse files
committed
len(k) is guaranteed to be greater than 1 in this case
1 parent b69b032 commit 4f82413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func FilterCustomQuery(u *nurl.URL) *nurl.URL {
5353
ux := *u
5454
vx := make(nurl.Values)
5555
for k, v := range ux.Query() {
56-
if len(k) <= 1 || (len(k) > 1 && k[0:2] != "x-") {
56+
if len(k) <= 1 || k[0:2] != "x-" {
5757
vx[k] = v
5858
}
5959
}

0 commit comments

Comments
 (0)