fix: dont print header if no deps

This commit is contained in:
b1ek 2024-07-31 02:39:11 +10:00
parent 94e0eeaecb
commit 8cd4d4663a
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ type Template struct {
func gencode(deps []string) string {
if len(deps) == 0 {
return ""
}
rdc := Template{args.DepsVarName, "'" + strings.Join(deps, "' '") + "'", !args.ExposeDeps}
tmpl, err := template.New("").Parse(bin)
if err != nil {