diff options
Diffstat (limited to 'internal/markup/markup.go')
-rw-r--r-- | internal/markup/markup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/markup/markup.go b/internal/markup/markup.go index b542f63d..fbcab4f3 100644 --- a/internal/markup/markup.go +++ b/internal/markup/markup.go @@ -70,7 +70,7 @@ func FindAllMentions(content string) []string { // cutoutVerbosePrefix cutouts URL prefix including sub-path to // return a clean unified string of request URL path. func cutoutVerbosePrefix(prefix string) string { - if len(prefix) == 0 || prefix[0] != '/' { + if prefix == "" || prefix[0] != '/' { return prefix } count := 0 @@ -186,7 +186,7 @@ func wrapImgWithLink(urlPrefix string, buf *bytes.Buffer, token html.Token) { } // Skip in case the "src" is empty - if len(src) == 0 { + if src == "" { buf.WriteString(token.String()) return } |