diff --git a/servlet/probe-servlet.go b/servlet/probe-servlet.go index 0b38779..47f06ab 100644 --- a/servlet/probe-servlet.go +++ b/servlet/probe-servlet.go @@ -66,7 +66,6 @@ func (s *ProbeServlets) Destroy(serverCtx server.ServerCtx) { func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.RequestCtx) (*fasthttp.ResponseHeader, error) { bMethod := ctx.Request.Header.Peek(ocpc.HTTPRequestHeaderKey_Probe_Method) - if nil == bMethod { return nil, fmt.Errorf("Unexpected probe method: %v", bMethod) } @@ -88,7 +87,6 @@ func (s *ProbeServlets) Handshake(servletCtx server.ServletCtx, ctx *fasthttp.Re grpcCTX := context.Background() r, err := grpc.Exec(grpcCTX, "ProbeService.readByProbeKey", probeKey) - if nil != err { return nil, fmt.Errorf("grpc call Error: %s", err.Error()) } @@ -152,7 +150,6 @@ func (s *ProbeServlets) handleSubscribe(serverCtx server.ServerCtx, subscribeCha } } } - } } }