Skip to content

Commit 9cfe02a

Browse files
committed
Fix lint
1 parent df9466b commit 9cfe02a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_metrics/aggregation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ def _create_aggregation(self, instrument: Instrument) -> _Aggregation:
120120
if isinstance(instrument, ObservableGauge):
121121
return _LastValueAggregation()
122122

123-
else:
124-
raise Exception("Invalid aggregation type found")
123+
raise Exception("Invalid aggregation type found")
125124

126125

127126
class _SumAggregation(_Aggregation[Sum]):

0 commit comments

Comments
 (0)