Skip to content

Rename isEmptyDiffisEmptyFirewallDiff for consistency#24277

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/rename-isemptydiff-function
Draft

Rename isEmptyDiffisEmptyFirewallDiff for consistency#24277
Copilot wants to merge 2 commits intomainfrom
copilot/rename-isemptydiff-function

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

isEmptyDiff was ambiguous given sibling functions isEmptyMCPToolsDiff and isEmptyAuditDiff in the same file — the name didn't communicate which diff type it operated on.

Changes

  • pkg/cli/audit_diff_render.go: Rename function definition and all 4 internal call sites
  • pkg/cli/audit_diff_test.go: Update 2 test call sites to match

Copilot AI changed the title [WIP] Rename isEmptyDiff to isEmptyFirewallDiff Rename isEmptyDiffisEmptyFirewallDiff for consistency Apr 3, 2026
Copilot AI requested a review from pelikhan April 3, 2026 11:31
@github-actions github-actions bot mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[function-namer] Go function rename plan: audit_diff_render.go

2 participants