Removes all unrequired checks, since the lifetime now guarantees the non nil presence of connectClient

This commit is contained in:
riccardom
2026-06-18 14:40:03 +02:00
parent 6d3bcef2c4
commit 3204270c4b
6 changed files with 14 additions and 51 deletions
-4
View File
@@ -62,10 +62,6 @@ func (s *Server) TracePacket(_ context.Context, req *proto.TracePacketRequest) (
}
func (s *Server) getPacketTracer() (packetTracer, *internal.Engine, error) {
if s.connectClient == nil {
return nil, nil, fmt.Errorf("connect client not initialized")
}
engine := s.connectClient.Engine()
if engine == nil {
return nil, nil, fmt.Errorf("engine not initialized")