Explicit return byte array at end of function.

This commit is contained in:
Kjetil Mehl 2014-04-05 16:59:28 +02:00
parent 55bb56bf9b
commit 786aed6213
1 changed files with 1 additions and 2 deletions

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 {