Simplify code
- Removed redundant returns - Implicitly declare httptest.Server
This commit is contained in:
parent
24cdbe8c3d
commit
20bc690d8d
2 changed files with 1 additions and 5 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue