Skip to content

Commit 8088934

Browse files
committed
Remove unused parameter suggested by gopls check
1 parent d88a86d commit 8088934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ws_js.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (c *Conn) Ping(ctx context.Context) error {
196196
// Write writes a message of the given type to the connection.
197197
// Always non blocking.
198198
func (c *Conn) Write(ctx context.Context, typ MessageType, p []byte) error {
199-
err := c.write(ctx, typ, p)
199+
err := c.write(typ, p)
200200
if err != nil {
201201
// Have to ensure the WebSocket is closed after a write error
202202
// to match the Go API. It can only error if the message type
@@ -210,7 +210,7 @@ func (c *Conn) Write(ctx context.Context, typ MessageType, p []byte) error {
210210
return nil
211211
}
212212

213-
func (c *Conn) write(ctx context.Context, typ MessageType, p []byte) error {
213+
func (c *Conn) write(typ MessageType, p []byte) error {
214214
if c.isClosed() {
215215
return net.ErrClosed
216216
}

0 commit comments

Comments
 (0)