fix: dont print header if no deps
This commit is contained in:
parent
94e0eeaecb
commit
8cd4d4663a
|
@ -18,6 +18,10 @@ type Template struct {
|
||||||
|
|
||||||
func gencode(deps []string) string {
|
func gencode(deps []string) string {
|
||||||
|
|
||||||
|
if len(deps) == 0 {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
rdc := Template{args.DepsVarName, "'" + strings.Join(deps, "' '") + "'", !args.ExposeDeps}
|
rdc := Template{args.DepsVarName, "'" + strings.Join(deps, "' '") + "'", !args.ExposeDeps}
|
||||||
tmpl, err := template.New("").Parse(bin)
|
tmpl, err := template.New("").Parse(bin)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue