publisher: Remove some unreachable code

This commit is contained in:
Bjørn Erik Pedersen committed 2021-04-20 17:47:09 +02:00
1 parent 0d3c42da56
commit f5d3d635e6
1 file changed
-4
-4
View File
@@ -239,10 +239,6 @@ func isQuote(b byte) bool {
}
func parseStartTag(s string) (string, bool) {
if strings.HasPrefix(s, "</") || strings.HasPrefix(s, "<!") {
return "", false
}
s = strings.TrimPrefix(s, "<")
s = strings.TrimSuffix(s, ">")