diff --git a/src/net/url/url.go b/src/net/url/url.go index b7e25ecfcb..b3513a85a3 100644 --- a/src/net/url/url.go +++ b/src/net/url/url.go @@ -709,8 +709,8 @@ func (v Values) Get(key string) string { if v == nil { return "" } - vs, ok := v[key] - if !ok || len(vs) == 0 { + vs := v[key] + if len(vs) == 0 { return "" } return vs[0]