Skip to content

Commit

Permalink
use gofmt to simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
thomseddon committed Jan 22, 2019
1 parent afd8878 commit 1a3a099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ 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)
}
if 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) == "" {
fmt.Printf("Extra key: %s\n", k)
}
Expand Down

0 comments on commit 1a3a099

Please sign in to comment.