Skip to content

Commit 2c63b32

Browse files
committed
linter fixes
1 parent 58aa736 commit 2c63b32

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

coderd/httpmw/logger_internal_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ func TestLoggerMiddleware_WebSocket(t *testing.T) {
9999
var wg sync.WaitGroup
100100
// Create a test handler to simulate a WebSocket connection
101101
testHandler := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
102-
103102
conn, err := websocket.Accept(rw, r, nil)
104103
if err != nil {
105104
t.Errorf("failed to accept websocket: %v", err)
@@ -111,7 +110,6 @@ func TestLoggerMiddleware_WebSocket(t *testing.T) {
111110
// Send a couple of messages for testing
112111
_ = conn.Write(ctx, websocket.MessageText, []byte("ping"))
113112
_ = conn.Write(ctx, websocket.MessageText, []byte("pong"))
114-
115113
})
116114

117115
// Wrap the test handler with the Logger middleware

0 commit comments

Comments
 (0)