Skip to content

Commit

Permalink
Correction related to clang format
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Suess <[email protected]>
  • Loading branch information
Matthias-NIDEC committed Oct 11, 2023
1 parent 7d699d7 commit b1d72c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/ocpp/v16/charge_point_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1543,19 +1543,19 @@ bool ChargePointConfiguration::isConnectorPhaseRotationValid(std::string str) {

// Filter per element of type 0.NotApplicable, 1.NotApplicable, or 0.Unknown etc
for (int connector_id = 0; connector_id <= this->getNumberOfConnectors(); connector_id++) {
std::string myNotApplicable = std::to_string(connector_id) + ".NotApplicable";
std::string myNotDefined = std::to_string(connector_id) + ".Unknown";
elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end());
elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end());
std::string myNotApplicable = std::to_string(connector_id) + ".NotApplicable";
std::string myNotDefined = std::to_string(connector_id) + ".Unknown";
elements.erase(std::remove(elements.begin(), elements.end(), myNotApplicable), elements.end());
elements.erase(std::remove(elements.begin(), elements.end(), myNotDefined), elements.end());
};
// if all elemens are hit, accept it, else check the remaining
if (elements.size() == 0) {
return true;
return true;
};

for (const std::string& e : elements) {
if (e.size() != 5) {
return false;
return false;
}
try {
auto connector = std::stoi(e.substr(0, 1));
Expand Down

0 comments on commit b1d72c8

Please sign in to comment.