Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ruff: Fix FURB110 Replace ternary `if` expression with `or` operator.
Anders Kaseorg1be8f8a89b59
diff --git a/zerver/lib/events.py b/zerver/lib/events.pyindex de3cbd28dad..fa142ec95af 100644--- a/zerver/lib/events.py+++ b/zerver/lib/events.py@@ -940,11 +940,11 @@ def fetch_initial_state_data(# in letting one search for GIFs; GIPHY only requires API keys# to exist at all so that they can deactivate them in cases of# abuse.- state["giphy_api_key"] = settings.GIPHY_API_KEY if settings.GIPHY_API_KEY else ""+ state["giphy_api_key"] = settings.GIPHY_API_KEY or ""if want("tenor"):# See Giphy comment above; Tenor API keys work similarly.- state["tenor_api_key"] = settings.TENOR_API_KEY if settings.TENOR_API_KEY else ""+ state["tenor_api_key"] = settings.TENOR_API_KEY or ""if want("push_device"):state["push_devices"] = {} if user_profile is None else get_push_devices(user_profile)