Skip to content

Commit

Permalink
chore: remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 15, 2024
1 parent 1a0e382 commit a119e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event_routing_backends/utils/xapi_lrs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def bulk_send(self, statement_data):
return

Check warning on line 80 in event_routing_backends/utils/xapi_lrs_client.py

View check run for this annotation

Codecov / codecov/patch

event_routing_backends/utils/xapi_lrs_client.py#L79-L80

Added lines #L79 - L80 were not covered by tests

if not response.success:
if response.response.code == 409 or response.response.code == 204:
if response.response.code == 409:
logger.warning(f"Duplicate event id found in: {response.request.content}")
else:
logger.warning(f"Failed request: {response.request.content}")
Expand Down

0 comments on commit a119e81

Please sign in to comment.