Skip to content

Commit 5f5812c

Browse files
committed
chore: fix lint errors
1 parent f4c50b5 commit 5f5812c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cns/healthserver/healthz_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ func setupMockAPIServer(code int) *httptest.Server {
267267
_, err := w.Write([]byte(nncCRD))
268268
if err != nil {
269269
http.Error(w, err.Error(), http.StatusInternalServerError)
270+
return
270271
}
271272
case "/apis/acn.azure.com/v1alpha/namespaces/kube-system/nodenetworkconfigs":
272273
if code == http.StatusOK {
@@ -275,6 +276,7 @@ func setupMockAPIServer(code int) *httptest.Server {
275276
_, err := w.Write([]byte(nncResult))
276277
if err != nil {
277278
http.Error(w, err.Error(), http.StatusInternalServerError)
279+
return
278280
}
279281
} else {
280282
w.WriteHeader(code)

0 commit comments

Comments
 (0)