use gofmt to simplify code

This commit is contained in:
Thom Seddon 2019-01-22 10:51:41 +00:00
parent afd8878188
commit 1a3a099ac1

View File

@ -68,7 +68,7 @@ func newHttpRequest(uri string) *http.Request {
}
func qsDiff(one, two url.Values) {
for k, _ := range one {
for k := range one {
if two.Get(k) == "" {
fmt.Printf("Key missing: %s\n", k)
}
@ -76,7 +76,7 @@ func qsDiff(one, two url.Values) {
fmt.Printf("Value different for %s: expected: '%s' got: '%s'\n", k, one.Get(k), two.Get(k))
}
}
for k, _ := range two {
for k := range two {
if one.Get(k) == "" {
fmt.Printf("Extra key: %s\n", k)
}