Skip to content

Commit

Permalink
fixed liniting
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamjenson committed Aug 21, 2023
1 parent c787225 commit 09b73ab
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,3 @@ func (c *conn) namespace(nsp string) *namespaceHandler {
handler, _ := c.handlers.Get(nsp)
return handler
}

func (c *conn) parseArgs(types []reflect.Type) ([]reflect.Value, error) {
return c.decoder.DecodeArgs(types)
}
2 changes: 1 addition & 1 deletion connection_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ackPacketHandler(c *conn, header parser.Header) error {
if !ok {
// This should never get here and would be solved with generic sync.Map
logger.Info("Incorrect Ack functinxo type")
rawFunc = emtpyFH // keep going
handler = emtpyFH // keep going
}

// Read the body because Ack can have body as well
Expand Down
3 changes: 0 additions & 3 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package socketio

import (
"github.com/googollee/go-socket.io/parser"
"reflect"
)

Expand All @@ -16,8 +15,6 @@ const (
clientDisconnectMsg = "client namespace disconnect"
)

type readHandler func(c *conn, header parser.Header) error

var (
defaultHeaderType = []reflect.Type{reflect.TypeOf("")}
)

0 comments on commit 09b73ab

Please sign in to comment.