mirror of
https://github.com/status-im/markdown.git
synced 2025-02-23 08:38:23 +00:00
Convert constant variables into consts
This commit is contained in:
parent
05a79218ed
commit
594d923645
4
block.go
4
block.go
@ -427,8 +427,8 @@ func (p *parser) htmlComment(out *bytes.Buffer, data []byte, doRender bool) int
|
||||
|
||||
// HTML CDATA section
|
||||
func (p *parser) htmlCDATA(out *bytes.Buffer, data []byte, doRender bool) int {
|
||||
cdataTag := "<![cdata["
|
||||
cdataTagLen := len(cdataTag)
|
||||
const cdataTag = "<![cdata["
|
||||
const cdataTagLen = len(cdataTag)
|
||||
if len(data) < cdataTagLen+1 {
|
||||
return 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user