mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
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:
parent
269dc6e00d
commit
3df9bbfdc1
2
html.go
2
html.go
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user