Skip to content

Commit

Permalink
chore: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Jan 8, 2025
1 parent a222e2d commit b0afea6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ linters-settings:

issues:
exclude-use-default: false
exclude-generated: disable
exclude-generated: lax
exclude-rules:
- path: _test.go
linters:
Expand Down
4 changes: 1 addition & 3 deletions internal/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ func generateCode(cmd *command.Command) (string, error) {
"string": func(s fmt.Stringer) string {
return s.String()
},
"trim": func(s string) string {
return strings.TrimSpace(s)
},
"trim": strings.TrimSpace,
}

tml, err := template.New("code").Funcs(funcMap).Parse(commandTemplate)
Expand Down

0 comments on commit b0afea6

Please sign in to comment.