Fixed some lint and code convention violations

This commit is contained in:
bwilliams committed 2026-10-16 14:43:37 +01:00
1 parent af7880ceac
commit 378ac59f41
6 files changed
+33 -11

No files matched your search

+3 -1
View File
@@ -48,7 +48,9 @@ func dialDirect(ctx context.Context, addr string) (*directConn, error) {
// Read returns the next line as a text message, skipping the blank lines the
// server sends to check the connection. Cancelling ctx interrupts it. The
// server closing the connection is reported as io.EOF.
func (d *directConn) Read(ctx context.Context) (websocket.MessageType, []byte, error) {
func (d *directConn) Read(
ctx context.Context,
) (websocket.MessageType, []byte, error) {
stop := context.AfterFunc(ctx, func() {
d.conn.SetReadDeadline(time.Now()) //nolint:errcheck,gosec // only interrupts the read
})