Skip to content

Commit

Permalink
Use one-liner for if-else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
JokeWaumans committed Sep 2, 2024
1 parent b55fc05 commit 0c9e1c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mlx/coverity/coverity_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,7 @@ def get_defects(self, stream, filters, column_names, snapshot):
if (filter := filters["component"]) and (filter_values := self.handle_component_filter(filter)):
query_filters.append(self.assemble_query_filter("Component", filter_values, "nameMatcher"))

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

data = {
"filters": query_filters,
Expand Down

0 comments on commit 0c9e1c2

Please sign in to comment.