bugdown: Fix mypy error with empty return.

This commit is contained in:
Tim Abbott 2017-08-16 11:29:07 -07:00
parent 8600efcf36
commit 7d49ce13b1
1 changed files with 1 additions and 1 deletions

View File

@ -1113,7 +1113,7 @@ class UserMentionPattern(markdown.inlinepatterns.Pattern):
name = match[2:-2]
else:
if not mention.user_mention_matches_wildcard(match):
return
return None
name = match
wildcard = mention.user_mention_matches_wildcard(name)