From 4710410cb556729b6f12f88e601c2a18875ec6e8 Mon Sep 17 00:00:00 2001 From: freddygv Date: Mon, 27 Apr 2020 12:00:14 -0600 Subject: [PATCH] Remove fallthrough --- agent/xds/server.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/agent/xds/server.go b/agent/xds/server.go index e51a30a513..7b1e960831 100644 --- a/agent/xds/server.go +++ b/agent/xds/server.go @@ -262,11 +262,7 @@ func (s *Server) process(stream ADSStream, reqCh <-chan *envoy.DiscoveryRequest) if rule != nil && rule.ServiceWrite(cfgSnap.Proxy.DestinationServiceName, &authzContext) != acl.Allow { return status.Errorf(codes.PermissionDenied, "permission denied") } - case structs.ServiceKindMeshGateway: - fallthrough - case structs.ServiceKindTerminatingGateway: - fallthrough - case structs.ServiceKindIngressGateway: + case structs.ServiceKindMeshGateway, structs.ServiceKindTerminatingGateway, structs.ServiceKindIngressGateway: cfgSnap.ProxyID.EnterpriseMeta.FillAuthzContext(&authzContext) if rule != nil && rule.ServiceWrite(cfgSnap.Service, &authzContext) != acl.Allow { return status.Errorf(codes.PermissionDenied, "permission denied")