good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 8abed3a7 authored by Anmol Sethi's avatar Anmol Sethi
Browse files

close.go: Remove unnecessary log.Printf call

parent e361137d
Branches
Tags
No related merge requests found
......@@ -8,7 +8,6 @@ import (
"encoding/binary"
"errors"
"fmt"
"log"
"time"
"nhooyr.io/websocket/internal/errd"
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment