use gofmt to simplify code
This commit is contained in:
parent
afd8878188
commit
1a3a099ac1
@ -68,7 +68,7 @@ func newHttpRequest(uri string) *http.Request {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func qsDiff(one, two url.Values) {
|
func qsDiff(one, two url.Values) {
|
||||||
for k, _ := range one {
|
for k := range one {
|
||||||
if two.Get(k) == "" {
|
if two.Get(k) == "" {
|
||||||
fmt.Printf("Key missing: %s\n", 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))
|
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) == "" {
|
if one.Get(k) == "" {
|
||||||
fmt.Printf("Extra key: %s\n", k)
|
fmt.Printf("Extra key: %s\n", k)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user