fix check

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-02-02 08:47:52 +03:00
parent e53b7fb78b
commit c74ea2bc7b

View File

@ -105,9 +105,9 @@ func (e *GenericTemplateBasedEncoder) templates() ([]string, error) {
}
for _, component := range components {
if debug {
log.Printf("check file template %s for %s", name, "_"+component+".pb.go")
log.Printf("check file template %s for %s", name, "_"+component+".pb.go.tmpl")
}
if component == "all" || strings.Contains(name, "_"+component+".pb.go") {
if component == "all" || strings.Contains(name, "_"+component+".pb.go.tmpl") {
skip = false
}
}