Skip to content

Commit

Permalink
Merge pull request sopel-irc#2511 from sopel-irc/py/mixed-returns
Browse files Browse the repository at this point in the history
xkcd: address py/mixed-returns CodeQL alert
  • Loading branch information
dgw committed Sep 28, 2023
2 parents 8c3e533 + 9cba730 commit 03dd79b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sopel/modules/xkcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def web_search(query):
match = re.match(r'(?:https?://)?(?:m\.)?xkcd\.com/(\d+)/?', url)
if match:
return match.group(1)
return None


def searchxkcd_search(query):
Expand Down

0 comments on commit 03dd79b

Please sign in to comment.