mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-21 12:59:54 +02:00
Add error checks per report from errcheck-ng
This commit is contained in:
committed by
Oleksii Kliukin
parent
292a9bda05
commit
bc0e9ab4bc
@@ -148,7 +148,9 @@ func TestInfo(t *testing.T) {
|
||||
t.Errorf("Authorization token is wrong or not provided")
|
||||
}
|
||||
w.WriteHeader(tc.inCode)
|
||||
fmt.Fprint(w, tc.in)
|
||||
if _, err := fmt.Fprint(w, tc.in); err != nil {
|
||||
t.Errorf("Error writing teams api response %v", err)
|
||||
}
|
||||
}))
|
||||
defer ts.Close()
|
||||
api := NewTeamsAPI(ts.URL, logger)
|
||||
|
||||
Reference in New Issue
Block a user