From ff4f31b6f3a977df26b0328afc7604215f1dc86a Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 9 Aug 2024 10:19:37 +0300 Subject: [PATCH] [#103] protogen: Handle files in all packages Signed-off-by: Evgenii Stratonikov --- util/protogen/main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/util/protogen/main.go b/util/protogen/main.go index 85c6ded..1a287ba 100644 --- a/util/protogen/main.go +++ b/util/protogen/main.go @@ -16,11 +16,7 @@ var ( func main() { protogen.Options{}.Run(func(gen *protogen.Plugin) error { for _, f := range gen.Files { - //if !f.Generate { - // continue - //} - imp := string(f.GoImportPath) - if strings.HasSuffix(imp, "/tree") || strings.HasSuffix(imp, "/control") { + if f.Generate { generateFile(gen, f) } }