Skip to content

Commit

Permalink
fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Feb 28, 2024
1 parent 37a25a9 commit 6dda4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions paramgen/internal/paramgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ func (p *parameterParser) parseSingleParameter(f *ast.Field, t config.ParameterT

return paramName, config.Parameter{
Default: p.getTag(f.Tag, tagParamDefault),
Description: p.formatFieldComment(f, fieldName, paramName),
Description: p.formatFieldComment(f),
Validations: validations,
Type: t,
}, nil
Expand Down Expand Up @@ -545,7 +545,7 @@ func (p *parameterParser) formatFieldName(name string) string {
return newName
}

func (p *parameterParser) formatFieldComment(f *ast.Field, fieldName, paramName string) string {
func (p *parameterParser) formatFieldComment(f *ast.Field) string {
doc := f.Doc
if doc == nil {
// fallback to line comment
Expand Down

0 comments on commit 6dda4ae

Please sign in to comment.