Convert constant variables into consts

pull/225/head
Vytautas Šaltenis 2015-12-16 20:51:44 +02:00
parent 05a79218ed
commit 594d923645
1 changed files with 2 additions and 2 deletions

View File

@ -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
}