Skip to content

Commit

Permalink
Make linter more happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tanyaveksler committed Nov 11, 2024
1 parent 52d3235 commit 45c7789
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/netpol/connlist/conns_formatter_md.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func getMDLine(c singleConnFields, srcFirst bool) string {

// writeOutput returns a md string form of connections from list of Peer2PeerConnection objects,
// and exposure analysis results from list ExposedPeer if exists
func (md *formatMD) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool, explain bool) (string, error) {
func (md *formatMD) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag, explain bool) (string, error) {
// Tanya TODO - handle explain flag
// first write connlist lines
allLines := md.writeMdConnlistLines(conns, exposureFlag, explain)
Expand Down
2 changes: 1 addition & 1 deletion pkg/netpol/connlist/conns_formatter_txt.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type formatText struct {

// writeOutput returns a textual string format of connections from list of Peer2PeerConnection objects,
// and exposure analysis results if exist
func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag bool, explain bool) (string, error) {
func (t *formatText) writeOutput(conns []Peer2PeerConnection, exposureConns []ExposedPeer, exposureFlag, explain bool) (string, error) {
res := t.writeConnlistOutput(conns, exposureFlag, explain)
if !exposureFlag {
return res, nil
Expand Down

0 comments on commit 45c7789

Please sign in to comment.