Skip to content

Commit

Permalink
publisher: Remove some unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Apr 20, 2021
1 parent 0d3c42d commit f5d3d63
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions publisher/htmlElementsCollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ">")

Expand Down

0 comments on commit f5d3d63

Please sign in to comment.