From d4ee3ea08bf2f1471dbf7846090d9dd931609968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Wed, 28 Oct 2015 21:21:51 +0200 Subject: [PATCH] Simplify return value --- inline.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/inline.go b/inline.go index 1c3956c..eb96ae4 100644 --- a/inline.go +++ b/inline.go @@ -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 {