Skip to content

Commit

Permalink
code review comment -> use any()
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarose committed Oct 7, 2024
1 parent dff5330 commit 5a113df
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,7 @@ def resolve_hasRunMetricsEnabled(self, graphene_info: ResolveInfo):
return False

run_tags = self.dagster_run.tags
for tag in RUN_METRIC_TAGS:
if get_boolean_tag_value(run_tags.get(tag)):
return True
return False
return any(get_boolean_tag_value(run_tags.get(tag) for tag in RUN_METRIC_TAGS))


class GrapheneIPipelineSnapshotMixin:
Expand Down

0 comments on commit 5a113df

Please sign in to comment.