Simplify code

- Removed redundant returns
- Implicitly declare httptest.Server
This commit is contained in:
Christian Muehlhaeuser 2019-08-08 09:16:55 +00:00
parent 8a48862adc
commit 0a3f6ae9e0
2 changed files with 1 additions and 5 deletions

View file

@ -16,7 +16,6 @@ func TestGetAccount(t *testing.T) {
return
}
fmt.Fprintln(w, `{"username": "zzz"}`)
return
}))
defer ts.Close()
@ -48,7 +47,6 @@ func TestGetAccountCurrentUser(t *testing.T) {
return
}
fmt.Fprintln(w, `{"username": "zzz"}`)
return
}))
defer ts.Close()
@ -80,7 +78,6 @@ func TestAccountUpdate(t *testing.T) {
return
}
fmt.Fprintln(w, `{"username": "zzz"}`)
return
}))
defer ts.Close()