Skip to content

Commit

Permalink
fix: remove method name for empty components
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Oct 28, 2024
1 parent e40ad4c commit 7af0b0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/kod/internal/generate_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,9 @@ func (g *generator) generateImports(p printFn) {
}

func (g *generator) generateFullMethodNames(p printFn) {
if len(g.components) == 0 {
return
}
p(``)
p(`// Full method names for components.`)
p(`const (`)
Expand Down

0 comments on commit 7af0b0b

Please sign in to comment.