diff --git a/backend/app/store/comment.go b/backend/app/store/comment.go
index f9ee42a0..b0787784 100644
--- a/backend/app/store/comment.go
+++ b/backend/app/store/comment.go
@@ -158,8 +158,7 @@ var reHref = regexp.MustCompile(`]*?\s+)?href="([^"]*)"`)
func (c *Comment) sanitizeAsURL(inp string) string {
h := fmt.Sprintf(``, inp)
clean := bluemonday.UGCPolicy().Sanitize(h)
- match := reHref.FindStringSubmatch(clean)
- if len(match) > 1 {
+ if match := reHref.FindStringSubmatch(clean); len(match) > 1 {
return match[1]
}
return "" // this shouldn't happen as we build the href