Skip to content

Commit

Permalink
Fixing linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
thampiotr committed May 4, 2023
1 parent 575b922 commit 2ad831c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions component/common/net/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func NewWithDefaults(logger log.Logger, metricsNamespace string, reg prometheus.
config.RegisterInstrumentation = false
// Add logger to weaveworks
config.Log = logging.GoKit(logger)

}

// Apply some defaults if nothing provided
Expand Down Expand Up @@ -238,7 +237,7 @@ func New(cfg ServerConfig) (*Server, error) {
InflightRequests: inflightRequests,
},
}
httpMiddleware := []middleware.Interface{}
var httpMiddleware []middleware.Interface
if cfg.DoNotAddDefaultHTTPMiddleware {
httpMiddleware = cfg.HTTPMiddleware
} else {
Expand Down Expand Up @@ -316,7 +315,6 @@ func (s *Server) Run() error {
// HTTPListenAddr exposes `net.Addr` that `Server` is listening to for HTTP connections.
func (s *Server) HTTPListenAddr() net.Addr {
return s.httpListener.Addr()

}

// Stop unblocks Run().
Expand Down

0 comments on commit 2ad831c

Please sign in to comment.