Skip to content

chore(fleetcontrol): use blank identifier for unused handler parameters#1795

Open
Nandu-pns wants to merge 1 commit intomainfrom
pns/fix-fleetcontrol-warnings
Open

chore(fleetcontrol): use blank identifier for unused handler parameters#1795
Nandu-pns wants to merge 1 commit intomainfrom
pns/fix-fleetcontrol-warnings

Conversation

@Nandu-pns
Copy link
Copy Markdown
Contributor

@Nandu-pns Nandu-pns commented Feb 20, 2026

The IDE was reporting "unused parameter" warnings across all 20 handle* functions in the fleetcontrol package.

The cmd *cobra.Command and args []string parameters exist to satisfy the CommandHandler interface but are never used inside any handler body — the framework (command_framework.go) extracts and validates everything from cmd into the flags argument before calling each handler.

This PR replaces the named parameters with _ (Go's blank identifier) across all 20 handler files to silence the warnings and make the intent explicit.

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.

1 participant