Skip to content

Commit

Permalink
refactor: remove unreachable code in Datadog backend (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdenef-adeo authored Nov 15, 2023
1 parent eca0351 commit 12f8bc4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions slo_generator/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def _validate(self, data) -> bool:
"""
# Backend not found
if data is None:
error = "Backend returned None."
self.errors.append(error)
return False

# Backend result is the wrong type
Expand Down Expand Up @@ -352,12 +354,6 @@ def _validate(self, data) -> bool:
self.errors.append(error)
return False

# Check backend None
if data is None:
error = "Backend returned None."
self.errors.append(error)
return False

return True

def _post_validate(self) -> bool:
Expand Down

0 comments on commit 12f8bc4

Please sign in to comment.