Merge pull request #58 from aspic/master

Explicit return byte array at end of function.
This commit is contained in:
Vytautas Šaltenis 2014-04-05 21:48:09 +03:00
commit 78dbffcfb7

View File

@ -818,9 +818,8 @@ func sanitizeHtml(html []byte) []byte {
func sanitizeTag(tag []byte) []byte {
if tagWhitelist.Match(tag) || anchorClean.Match(tag) || imgClean.Match(tag) {
return tag
} else {
return []byte("")
}
return []byte("")
}
func skipUntilChar(text []byte, start int, char byte) int {