Skip to content

Commit

Permalink
fixing linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed May 18, 2024
1 parent f9670d8 commit 94d4421
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions testcerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,11 @@ func TestFullFlow(t *testing.T) {
}()

// Add handler
server.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, World!"))
server.Handler = http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
_, err := w.Write([]byte("Hello, World!"))
if err != nil {
t.Errorf("Error writing response - %s", err)
}
})

// Wait for Listener to start
Expand Down Expand Up @@ -452,8 +455,11 @@ func ExampleNewCA() {
}()

// Add handler
server.Handler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, World!"))
server.Handler = http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
_, err := w.Write([]byte("Hello, World!"))
if err != nil {
fmt.Printf("Error writing response - %s", err)
}
})

// Wait for Listener to start
Expand Down

0 comments on commit 94d4421

Please sign in to comment.