Skip to content

Commit 0ac5fcc

Browse files
mtest: log url.ParseQuery err (fixes ineffassign)
1 parent 5e40776 commit 0ac5fcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/mtest/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ func helloworld(w http.ResponseWriter, r *http.Request) {
3737
var qs url.Values
3838
if r.URL != nil {
3939
qs, err = url.ParseQuery(r.URL.RawQuery)
40+
if err != nil {
41+
log.Println("url.ParseQuery err:", err)
42+
}
4043
}
4144
if qs == nil {
4245
qs = make(url.Values)

0 commit comments

Comments
 (0)