Code clean up
This commit is contained in:
@@ -24,10 +24,6 @@ import (
|
||||
"github.com/nirui/sshwifty/application/network"
|
||||
)
|
||||
|
||||
var (
|
||||
emptyTime = time.Time{}
|
||||
)
|
||||
|
||||
type listener struct {
|
||||
*net.TCPListener
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ func (d dumpWrite) Write(b []byte) (int, error) {
|
||||
// Errors
|
||||
var (
|
||||
ErrInvalidIPAddress = errors.New(
|
||||
"Invalid IP address")
|
||||
"invalid IP address")
|
||||
)
|
||||
|
||||
// HandlerBuilder builds a HTTP handler
|
||||
@@ -60,7 +60,6 @@ type CloseCallback func(error)
|
||||
// Server represents a server
|
||||
type Server struct {
|
||||
logger log.Logger
|
||||
cfg configuration.Common
|
||||
shutdownWait *sync.WaitGroup
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user