Skip to content

Commit

Permalink
Fixed unchecked iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoBarbieri committed Jul 17, 2024
1 parent be851bc commit 879966f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nba_api/deployment/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2
1.2.3
2 changes: 1 addition & 1 deletion nba_api/swagger_server/controllers/match_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def matches_get(date_from: str, date_to: str | None = None) -> list[dict[str, st
matches = helper.get_league_game_log_by_date(date_from, date_to)

res = []
if len(matches) == 0:
if matches is None:
return res

for match in matches:
Expand Down

0 comments on commit 879966f

Please sign in to comment.