Skip to content

Commit cdebbfb

Browse files
committed
refactor(tests): handle Write return value in matcher_test.go
1 parent 8215665 commit cdebbfb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/dispatch/matcher_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ func TestHostHasSubdomainConstructor(t *testing.T) {
188188
func TestHostHasSubdomainWithDispatcher(t *testing.T) {
189189
d := New(func(b *Builder) {
190190
b.When(HostHasSubdomain("s3.example.com")).Do(func(w http.ResponseWriter, r *http.Request) {
191-
w.Write([]byte("subdomain"))
191+
_, _ = w.Write([]byte("subdomain"))
192192
})
193193
b.Default(func(w http.ResponseWriter, r *http.Request) {
194-
w.Write([]byte("path"))
194+
_, _ = w.Write([]byte("path"))
195195
})
196196
})
197197

0 commit comments

Comments
 (0)