diff options
author | Bjørn Erik Pedersen <[email protected]> | 2021-04-20 17:45:15 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-04-20 17:47:09 +0200 |
commit | f5d3d635e6b88d7c5d304b80f04e7b4361349fd6 (patch) | |
tree | f2e628b8e2a86f59c6701c444db327781705db68 /publisher/htmlElementsCollector.go | |
parent | 0d3c42da56151325f16802b3b1a4105a21ce250e (diff) | |
download | hugo-f5d3d635e6b88d7c5d304b80f04e7b4361349fd6.tar.gz hugo-f5d3d635e6b88d7c5d304b80f04e7b4361349fd6.zip |
publisher: Remove some unreachable code
Diffstat (limited to 'publisher/htmlElementsCollector.go')
-rw-r--r-- | publisher/htmlElementsCollector.go | 4 |
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, ">") |