Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-20 18:45:15 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-20 18:47:09 +0300
commitf5d3d635e6b88d7c5d304b80f04e7b4361349fd6 (patch)
treef2e628b8e2a86f59c6701c444db327781705db68 /publisher
parent0d3c42da56151325f16802b3b1a4105a21ce250e (diff)
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, ">")