Simplify return value
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 28 Oct 2015 21:21:51 +0200
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
inline.go
→
inline.go
@@ -661,10 +661,7 @@ }
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 {