Skip to content

Commit 9108f52

Browse files
committed
fix: refactor error handling and testing infrastructure
- Handle the error returned by `io.WriteString` in `basicHelloHandler` function Signed-off-by: appleboy <[email protected]>
1 parent c650d57 commit 9108f52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gofight_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
func basicHelloHandler(w http.ResponseWriter, r *http.Request) {
12-
io.WriteString(w, "Hello World")
12+
_, _ = io.WriteString(w, "Hello World")
1313
}
1414

1515
func basicEngine() http.Handler {

0 commit comments

Comments
 (0)