Skip to content

Commit

Permalink
close.go: Remove unnecessary log.Printf call
Browse files Browse the repository at this point in the history
  • Loading branch information
nhooyr committed Oct 19, 2023
1 parent e361137 commit 8abed3a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions close.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"encoding/binary"
"errors"
"fmt"
"log"
"time"

"nhooyr.io/websocket/internal/errd"
Expand Down Expand Up @@ -150,9 +149,6 @@ func (c *Conn) writeClose(code StatusCode, reason string) error {
var marshalErr error
if ce.Code != StatusNoStatusRcvd {
p, marshalErr = ce.bytes()
if marshalErr != nil {
log.Printf("websocket: %v", marshalErr)
}
}

writeErr := c.writeControl(context.Background(), opClose, p)
Expand Down

0 comments on commit 8abed3a

Please sign in to comment.