aboutsummaryrefslogtreecommitdiffhomepage
path: root/publisher
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-04-20 17:45:15 +0200
committerBjørn Erik Pedersen <[email protected]>2021-04-20 17:47:09 +0200
commitf5d3d635e6b88d7c5d304b80f04e7b4361349fd6 (patch)
treef2e628b8e2a86f59c6701c444db327781705db68 /publisher
parent0d3c42da56151325f16802b3b1a4105a21ce250e (diff)
downloadhugo-f5d3d635e6b88d7c5d304b80f04e7b4361349fd6.tar.gz
hugo-f5d3d635e6b88d7c5d304b80f04e7b4361349fd6.zip
publisher: Remove some unreachable code
Diffstat (limited to 'publisher')
-rw-r--r--publisher/htmlElementsCollector.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/publisher/htmlElementsCollector.go b/publisher/htmlElementsCollector.go
index 13387a7ee..9dc28c4c2 100644
--- 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, ">")