diff --git a/cmd/kod/internal/generate_generator.go b/cmd/kod/internal/generate_generator.go index bbeaf97..fb76c70 100644 --- a/cmd/kod/internal/generate_generator.go +++ b/cmd/kod/internal/generate_generator.go @@ -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 (`)