MCPcopy Index your code
hub / github.com/github/gh-aw / isEmptyFirewallDiff

Function isEmptyFirewallDiff

pkg/cli/audit_diff_render.go:817–822  ·  view source on GitHub ↗

isEmptyFirewallDiff returns true if the firewall diff contains no changes

(diff *FirewallDiff)

Source from the content-addressed store, hash-verified

815
816// isEmptyFirewallDiff returns true if the firewall diff contains no changes
817func isEmptyFirewallDiff(diff *FirewallDiff) bool {
818 return len(diff.NewDomains) == 0 &&
819 len(diff.RemovedDomains) == 0 &&
820 len(diff.StatusChanges) == 0 &&
821 len(diff.VolumeChanges) == 0
822}
823
824// isEmptyMCPToolsDiff returns true if the MCP tools diff contains no changes
825func isEmptyMCPToolsDiff(diff *MCPToolsDiff) bool {

Callers 5

isEmptyAuditDiffFunction · 0.85
TestIsEmptyDiffFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsEmptyDiffFunction · 0.68