Skip to content

Commit

Permalink
fix: Add break statement
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-bozbei-ew committed Sep 20, 2023
1 parent 736adac commit 67955fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions py_ocpi/modules/locations/v_2_1_1/api/emsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ async def add_or_update_connector(

response_data.append(connector.dict())
response_status = status.OCPI_1000_GENERIC_SUCESS_CODE
break

return OCPIResponse(data=response_data, **response_status)

Expand Down Expand Up @@ -388,6 +389,7 @@ async def partial_update_evse(

response_data.append(new_evse.dict())
response_status = status.OCPI_1000_GENERIC_SUCESS_CODE
break

return OCPIResponse(data=response_data, **response_status)

Expand Down

0 comments on commit 67955fb

Please sign in to comment.