From 3df9bbfdc15a0036035229fbaa8da8d767443f5f Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 24 Apr 2019 01:01:43 -0400 Subject: [PATCH] changed from map nil check to length check Realized that since the map is initialized it will never be `nil` --- html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.go b/html.go index 3b1ca93..e408e28 100644 --- a/html.go +++ b/html.go @@ -695,7 +695,7 @@ func (options *Html) DocumentHeader(out *bytes.Buffer) { out.WriteString(ending) out.WriteString(">\n") // plug the user-specified tags - if options.meta != nil { + if len(options.meta) > 0 { for k, v := range options.meta { out.WriteString("