Skip to content

Commit c70a4f9

Browse files
committed
Remove erroneous empty value check in parseBoolParameter
1 parent 55918f9 commit c70a4f9

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

modules/openapi-generator/src/main/resources/go-server/routers.mustache

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,9 +343,6 @@ func parseNumericParameter[T Number](param string, fn Operation[T], checks ...Co
343343

344344
// parseBoolParameter parses a string parameter to a bool
345345
func parseBoolParameter(param string, fn Operation[bool]) (*bool, error) {
346-
if param == "" {
347-
return nil, nil
348-
}
349346
v, _, err := fn(param)
350347
return v, err
351348
}

0 commit comments

Comments
 (0)