Skip to content

Commit

Permalink
Use if-else statement to avoid problems with static analysis checker
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Aug 23, 2024
1 parent 0676444 commit 1a141f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mlx/coverity_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ def get_defects(self, stream, snapshot, filters, column_names):
if (filter := filters["component"]) and (filter_values := self.handle_component_filter(filter)):
query_filters.append(self.assemble_query_filter("Component", filter_values, "nameMatcher"))

scope = "last()"
if snapshot:
scope = snapshot
else:
scope = "last()"

data = {
"filters": query_filters,
"columns": list(self.column_keys(column_names)),
Expand Down

0 comments on commit 1a141f4

Please sign in to comment.