Remove the unncessary var and const blocks

This commit is contained in:
Soheil Hassas Yeganeh
2016-02-21 10:37:29 -05:00
parent 48deeb47a3
commit 3ca13bcd9e
2 changed files with 5 additions and 11 deletions

View File

@@ -38,11 +38,9 @@ func (e errListenerClosed) Error() string { return string(e) }
func (e errListenerClosed) Temporary() bool { return false }
func (e errListenerClosed) Timeout() bool { return false }
var (
// ErrListenerClosed is returned from muxListener.Accept when the underlying
// listener is closed.
ErrListenerClosed = errListenerClosed("mux: listener closed")
)
// ErrListenerClosed is returned from muxListener.Accept when the underlying
// listener is closed.
var ErrListenerClosed = errListenerClosed("mux: listener closed")
// New instantiates a new connection multiplexer.
func New(l net.Listener) CMux {