Skip to content

Commit

Permalink
Fix codacy remark.
Browse files Browse the repository at this point in the history
Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
  • Loading branch information
maaikez committed Dec 10, 2024
1 parent a519419 commit bf3307b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocpp/v201/functional_blocks/reservation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void Reservation::handle_reserve_now_request(Call<ReserveNowRequest> call) {
} else {
// No evse id. Just search for all evse's if there is something available for reservation
const uint64_t number_of_evses = evse_manager.get_number_of_evses();
if (number_of_evses <= 0) {
if (number_of_evses == 0) {
send_reserve_now_rejected_response(call.uniqueId, "No evse's found in charging station");
EVLOG_error << "Trying to make a reservation, but number of evse's is 0";
return;
Expand Down

0 comments on commit bf3307b

Please sign in to comment.