diff options
Diffstat (limited to 'vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go')
-rw-r--r-- | vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go b/vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go index c8756fa4e..3310150c0 100644 --- a/vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go +++ b/vendor/github.com/nicksnyder/go-i18n/i18n/translation/template.go @@ -13,6 +13,10 @@ type template struct { } func newTemplate(src string) (*template, error) { + if src == "" { + return new(template), nil + } + var tmpl template err := tmpl.parseTemplate(src) return &tmpl, err |