Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
olasaadi99 committed Jan 14, 2024
1 parent 14e352b commit 11d71d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
9 changes: 0 additions & 9 deletions pkg/vpcmodel/subnetsConnectivity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pkg/vpcmodel/textOutput.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 11d71d8

Please sign in to comment.