diff --git a/pkg/vpcmodel/subnetsConnectivity.go b/pkg/vpcmodel/subnetsConnectivity.go index 835fff77a..e07dd5bdd 100644 --- a/pkg/vpcmodel/subnetsConnectivity.go +++ b/pkg/vpcmodel/subnetsConnectivity.go @@ -313,15 +313,6 @@ func (v *VPCsubnetConnectivity) String() string { return res } -// get the grouped subnet connectivity stateLessness -func (v *VPCsubnetConnectivity) hasStatelessConns() bool { - hasStatelessConns := false - for _, line := range v.GroupedConnectivity.GroupedLines { - hasStatelessConns = hasStatelessConns || line.commonProperties.conn.IsStateful == common.StatefulFalse - } - return hasStatelessConns -} - // GetConnectivityOutputPerEachSubnetSeparately returns string results of connectivity analysis per // single subnet with its attached nacl, separately per subnet - useful to get understanding of the // connectivity implied from nacl configuration applied on a certain subnet in the vpc diff --git a/pkg/vpcmodel/textOutput.go b/pkg/vpcmodel/textOutput.go index 8b3cff1f4..3c81c3663 100644 --- a/pkg/vpcmodel/textOutput.go +++ b/pkg/vpcmodel/textOutput.go @@ -59,5 +59,6 @@ func (t *TextOutputFormatter) WriteOutput(c1, c2 *VPCConfig, } // write output to file and return the output string _, err = WriteToFile(out, outFile) - return &SingleAnalysisOutput{Output: out, VPC1Name: c1.VPC.Name(), VPC2Name: vpc2Name, format: Text, hasStatelessConn: hasStatelessConns}, err + return &SingleAnalysisOutput{Output: out, VPC1Name: c1.VPC.Name(), + VPC2Name: vpc2Name, format: Text, hasStatelessConn: hasStatelessConns}, err }