mirror of
https://github.com/status-im/markdown.git
synced 2025-02-22 16:18:22 +00:00
Simplify return value
This commit is contained in:
parent
4b26653fe0
commit
d4ee3ea08b
@ -661,10 +661,7 @@ func entity(p *parser, out *bytes.Buffer, data []byte, offset int) int {
|
||||
|
||||
func linkEndsWithEntity(data []byte, linkEnd int) bool {
|
||||
entityRanges := htmlEntity.FindAllIndex(data[:linkEnd], -1)
|
||||
if entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd
|
||||
}
|
||||
|
||||
func autoLink(p *parser, out *bytes.Buffer, data []byte, offset int) int {
|
||||
|
Loading…
x
Reference in New Issue
Block a user