Skip to content

Commit

Permalink
fix: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
shingoxx222 committed Nov 14, 2024
1 parent f88ebf2 commit 534a4eb
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3597,15 +3597,13 @@ bool ChargePoint::should_allow_certificate_install(InstallCertificateUseEnum cer
switch (cert_type) {
case InstallCertificateUseEnum::CSMSRootCertificate:
return this->device_model
->get_optional_value<bool>(
ControllerComponentVariables::AllowCSMSRootCertInstallWhenSecurityProfile1)
.value_or(true);
->get_optional_value<bool>(ControllerComponentVariables::AllowCSMSRootCertInstallWhenSecurityProfile1)
.value_or(true);

case InstallCertificateUseEnum::ManufacturerRootCertificate:
return this->device_model
->get_optional_value<bool>(
ControllerComponentVariables::AllowMFRootCertInstallWhenSecurityProfile1)
.value_or(true);
->get_optional_value<bool>(ControllerComponentVariables::AllowMFRootCertInstallWhenSecurityProfile1)
.value_or(true);
default:
return true;
}
Expand Down

0 comments on commit 534a4eb

Please sign in to comment.