Explicit return byte array at end of function.
This commit is contained in:
parent
55bb56bf9b
commit
786aed6213
3
html.go
3
html.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue