publisher: Remove some unreachable code

This commit is contained in:
Bjørn Erik Pedersen 2021-04-20 17:45:15 +02:00
parent 0d3c42da56
commit f5d3d635e6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

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, ">")