ruff: Fix SIM114 Combine if
branches using logical or
operator.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
b009dcd7d3
commit
6a37290cec
2 changed files with 2 additions and 6 deletions
|
@ -247,9 +247,7 @@ def handle_event(event: Dict[str, Any]) -> None:
|
||||||
pass
|
pass
|
||||||
elif event_type == "wiki_page":
|
elif event_type == "wiki_page":
|
||||||
logging.warning("Wiki page notifications not yet implemented")
|
logging.warning("Wiki page notifications not yet implemented")
|
||||||
elif event_type == "sprint_creation":
|
elif event_type in ("sprint_creation", "sprint_ended"):
|
||||||
logging.warning("Sprint notifications not yet implemented")
|
|
||||||
elif event_type == "sprint_ended":
|
|
||||||
logging.warning("Sprint notifications not yet implemented")
|
logging.warning("Sprint notifications not yet implemented")
|
||||||
else:
|
else:
|
||||||
logging.info("Unknown event type %s, ignoring!", event_type)
|
logging.info("Unknown event type %s, ignoring!", event_type)
|
||||||
|
|
|
@ -51,9 +51,7 @@ def get_google_result(search_keywords: str) -> str:
|
||||||
|
|
||||||
search_keywords = search_keywords.strip()
|
search_keywords = search_keywords.strip()
|
||||||
|
|
||||||
if search_keywords == "help":
|
if search_keywords in ("help", ""):
|
||||||
return help_message
|
|
||||||
elif search_keywords == "" or search_keywords is None:
|
|
||||||
return help_message
|
return help_message
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue