Skip to content

Commit bb58db9

Browse files
committed
Remove unreachable return statements in bulk_export and bulk_service
Every branch in the if/elif/else chain already returns, making the trailing `return r` lines dead code. Closes #36
1 parent 3de04c7 commit bb58db9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

leakix/client.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ def bulk_export(self, queries: list[Query] | None = None):
185185
return ErrorResponse(response=r, response_json=[], status_code=200)
186186
else:
187187
return ErrorResponse(response=r, response_json=r.json())
188-
return r
189188

190189
def bulk_export_last_event(self, queries: list[Query] | None = None):
191190
response = self.bulk_export(queries)
@@ -222,4 +221,3 @@ def bulk_service(self, queries: list[Query] | None = None):
222221
return ErrorResponse(response=r, response_json=[], status_code=200)
223222
else:
224223
return ErrorResponse(response=r, response_json=r.json())
225-
return r

0 commit comments

Comments
 (0)