From 33190ea6c357d70597d6da856b28bc061576ac40 Mon Sep 17 00:00:00 2001 From: "aleksandr.vodyanov" Date: Tue, 14 May 2024 12:29:00 +0300 Subject: [PATCH] up --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") {