Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewqian2001datadog committed Jan 17, 2025
1 parent 810353a commit 351a8cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datadog/dogstatsd/max_sample_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def sample(self, value):

def maybe_keep_sample(self, value):
if self.max_metric_samples > 0:
self.total_metric_samples += 1
self.total_metric_samples += 1
if self.stored_metric_samples < self.max_metric_samples:
self.data[self.stored_metric_samples] = value
self.stored_metric_samples += 1
Expand All @@ -35,7 +35,6 @@ def maybe_keep_sample(self, value):
else:
self.sample(value)


def skip_sample(self):
self.total_metric_samples += 1

Expand Down

0 comments on commit 351a8cc

Please sign in to comment.