Skip to content

Commit

Permalink
Fix location of returns
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jul 3, 2024
1 parent 90c5557 commit 7332465
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,14 @@ def collect(
is AggregationTemporality.DELTA
):

if value is None:
return None

previous_collection_start_nano = (
self._previous_collection_start_nano
)
self._previous_collection_start_nano = (
collection_start_nano
)

if current_value is None:
if value is None:
return None

return NumberDataPoint(
Expand Down Expand Up @@ -473,17 +470,14 @@ def collect(
is AggregationTemporality.DELTA
):

if value is None:
return None

previous_collection_start_nano = (
self._previous_collection_start_nano
)
self._previous_collection_start_nano = (
collection_start_nano
)

if current_value is None:
if value is None:
return None

return HistogramDataPoint(
Expand Down

0 comments on commit 7332465

Please sign in to comment.