go-graphite / go-carbon

Found empty body in an if or else branch SCC-SA9003
Anti-pattern
Minor
6 months ago4 years old
empty branch
 72		api.Go(func(exit chan struct{}) {
 73			defer s.Stop()
 74
 75			if err := s.Serve(tcpListener); err != nil { //nolint:staticcheck 76				// may be stopped - not error
 77				// zapwriter.Logger("api").Fatal("failed to serve", zap.Error(err))
 78			}