Skip to content

Conversation

@SamMorrowDrums
Copy link
Collaborator

Removes unnecessary explicit type arguments from OptionalParamOK calls in helper_test.go.

Go can infer the second type parameter (map[string]any) automatically, so specifying it explicitly triggers the infertypeargs lint warning about unnecessary type arguments.

Changes

  • Line 219: OptionalParamOK[string, map[string]any]OptionalParamOK[string]
  • Line 234: OptionalParamOK[bool, map[string]any]OptionalParamOK[bool]
  • Line 249: OptionalParamOK[float64, map[string]any]OptionalParamOK[float64]

@SamMorrowDrums SamMorrowDrums requested a review from a team as a code owner December 15, 2025 14:43
Copilot AI review requested due to automatic review settings December 15, 2025 14:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes unnecessary explicit type arguments from OptionalParamOK function calls in test code, addressing the infertypeargs linter warning. The second type parameter (map[string]any) can be automatically inferred by Go from the function arguments, making its explicit specification redundant.

Key Changes:

  • Simplified three OptionalParamOK calls by removing the redundant second type parameter
  • Maintained test functionality while improving code clarity

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.

2 participants