Skip to content

Commit 5c1dadf

Browse files
author
Brian Sorahan
committed
Revert "fix golint error"
This reverts commit 9b19704.
1 parent 384341a commit 5c1dadf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcp.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func ListenTCP(network string, laddr *net.TCPAddr) (*TCPListener, error) {
2121
}
2222

2323
// Serve starts dispatching OSC.
24-
func (listener *TCPListener) Serve(dispatcher Dispatcher) error {
24+
func (conn *TCPListener) Serve(dispatcher Dispatcher) error {
2525
if dispatcher == nil {
2626
return ErrNilDispatcher
2727
}
@@ -33,7 +33,7 @@ func (listener *TCPListener) Serve(dispatcher Dispatcher) error {
3333
}
3434

3535
for {
36-
if err := listener.serve(dispatcher); err != nil {
36+
if err := conn.serve(dispatcher); err != nil {
3737
return err
3838
}
3939
break

0 commit comments

Comments
 (0)