Skip to content

Commit 2f5bcfe

Browse files
authored
Fix lint issue (#115)
1 parent 0d0d3f0 commit 2f5bcfe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

service/init_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ import (
1616

1717
func Test_nrf_url_is_not_overwritten_when_registering(t *testing.T) {
1818
svr := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
19-
fmt.Fprintf(w, "banana")
19+
_, err := fmt.Fprintf(w, "banana")
20+
if err != nil {
21+
t.Errorf("Fprintf failed to format/write. Error: %v", err)
22+
}
2023
}))
2124
svr.EnableHTTP2 = true
2225
svr.StartTLS()

0 commit comments

Comments
 (0)