Skip to content

Commit

Permalink
fix: Use idiomatic python for conditional (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
averikitsch committed Dec 21, 2023
1 parent 359e5d3 commit 18e5e9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrieval_service/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def search_airports(
city: Optional[str] = None,
name: Optional[str] = None,
):
if country == None and city == None and name == None:
if country is None and city is None and name is None:
raise HTTPException(
status_code=422,
detail="Request requires at least one query params: country, city, or airport name",
Expand Down

0 comments on commit 18e5e9d

Please sign in to comment.