changed from map nil check to length check

Realized that since the map is initialized it will never be `nil`
This commit is contained in:
Ben Morrison 2019-04-24 01:01:43 -04:00 committed by GitHub
parent 269dc6e00d
commit 3df9bbfdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -695,7 +695,7 @@ func (options *Html) DocumentHeader(out *bytes.Buffer) {
out.WriteString(ending)
out.WriteString(">\n")
// plug the user-specified <meta.../> tags
if options.meta != nil {
if len(options.meta) > 0 {
for k, v := range options.meta {
out.WriteString(" <meta " + k + " content=\"" + v + "\"")
out.WriteString(ending)