Skip to content

Commit ef2b1a6

Browse files
refactor (meetup_query.py): use ternary operator
1 parent d09b504 commit ef2b1a6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/core/meetup_query.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,7 @@ def process_events(response, exclusions: list = None) -> list:
287287
"""
288288
Process events from response
289289
"""
290-
if exclusions is not None:
291-
df = format_response(response, exclusions=exclusions)
292-
else:
293-
df = format_response(response)
290+
df = format_response(response, exclusions=exclusions) if exclusions is not None else format_response(response)
294291

295292
# If DataFrame is empty, return early
296293
if df.empty:

0 commit comments

Comments
 (0)