diff --git a/main.go b/main.go index 4824608..e6c056d 100644 --- a/main.go +++ b/main.go @@ -300,9 +300,9 @@ func licenseHeader(path string, tmpl *template.Template, data licenseData) ([]by lic, err = executeTemplate(tmpl, data, "(**", " ", "*)") case ".ts": lic, err = executeTemplate(tmpl, data, "/**", " * ", " */") - if err != nil { + if err != nil { lic, err = executeTemplate(tmpl, data, "") - } + } default: // handle various cmake files if base == "cmakelists.txt" || strings.HasSuffix(base, ".cmake.in") || strings.HasSuffix(base, ".cmake") {