changed from map nil check to length check

Realized that since the map is initialized it will never be `nil`
pull/541/head
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
1 changed files with 1 additions and 1 deletions

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)