From 528d0910abf64a6a300f966de84d7e4488ffef80 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 16 Jun 2020 19:03:33 -0700 Subject: [PATCH] Add omitempty to requires property. --- templates/templates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/templates.go b/templates/templates.go index dd575fca..745e3571 100644 --- a/templates/templates.go +++ b/templates/templates.go @@ -106,7 +106,7 @@ type Template struct { TemplatePath string `json:"template"` Path string `json:"path"` Comment string `json:"comment"` - RequiredData []string `json:"requires"` + RequiredData []string `json:"requires,omitempty"` Content []byte `json:"-"` }