Skip to content

Commit

Permalink
Simplify condition by removing redundant class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Oct 29, 2024
1 parent 3800200 commit b808bf5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ def __init__(self, *, prometheus_enabled: bool = True):
else:
resource = Resource.create({"service.name": "langflow"})
metric_readers = []
self.prometheus_enabled = prometheus_enabled
if self.prometheus_enabled:
if prometheus_enabled:
metric_readers.append(PrometheusMetricReader())

self._meter_provider = MeterProvider(resource=resource, metric_readers=metric_readers)
Expand Down

0 comments on commit b808bf5

Please sign in to comment.