Skip to content

Commit cd55f6f

Browse files
fix: remove unnecessary type arguments in helper_test.go
1 parent 011065a commit cd55f6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/github/helper_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func TestOptionalParamOK(t *testing.T) {
216216
t.Run(tc.name, func(t *testing.T) {
217217
// Test with string type assertion
218218
if _, isString := tc.expectedVal.(string); isString || tc.errorMsg == "parameter myParam is not of type string, is bool" {
219-
val, ok, err := OptionalParamOK[string, map[string]any](tc.args, tc.paramName)
219+
val, ok, err := OptionalParamOK[string](tc.args, tc.paramName)
220220
if tc.expectError {
221221
require.Error(t, err)
222222
assert.Contains(t, err.Error(), tc.errorMsg)
@@ -231,7 +231,7 @@ func TestOptionalParamOK(t *testing.T) {
231231

232232
// Test with bool type assertion
233233
if _, isBool := tc.expectedVal.(bool); isBool || tc.errorMsg == "parameter myParam is not of type bool, is string" {
234-
val, ok, err := OptionalParamOK[bool, map[string]any](tc.args, tc.paramName)
234+
val, ok, err := OptionalParamOK[bool](tc.args, tc.paramName)
235235
if tc.expectError {
236236
require.Error(t, err)
237237
assert.Contains(t, err.Error(), tc.errorMsg)
@@ -246,7 +246,7 @@ func TestOptionalParamOK(t *testing.T) {
246246

247247
// Test with float64 type assertion (for number case)
248248
if _, isFloat := tc.expectedVal.(float64); isFloat {
249-
val, ok, err := OptionalParamOK[float64, map[string]any](tc.args, tc.paramName)
249+
val, ok, err := OptionalParamOK[float64](tc.args, tc.paramName)
250250
if tc.expectError {
251251
// This case shouldn't happen for float64 in the defined tests
252252
require.Fail(t, "Unexpected error case for float64")

0 commit comments

Comments
 (0)