commit f5d3d635e6b88d7c5d304b80f04e7b4361349fd6
parent 0d3c42da56151325f16802b3b1a4105a21ce250e
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Tue, 20 Apr 2021 17:45:15 +0200
publisher: Remove some unreachable code
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/publisher/htmlElementsCollector.go b/publisher/htmlElementsCollector.go
@@ -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, ">")