Skip to content

Commit

Permalink
1. Fix the logic error of certificate_path (#88)
Browse files Browse the repository at this point in the history
Signed-off-by: Elsa-is-My-Muse <[email protected]>
  • Loading branch information
Elsa-is-My-Muse authored Aug 1, 2024
1 parent 8a300f3 commit d1f9a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/evse_security/evse_security.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ EvseSecurity::get_installed_certificates(const std::vector<CertificateType>& cer
if (secc_key_pair.status == GetCertificateInfoStatus::Accepted) {
fs::path certificate_path;

if (secc_key_pair.info.value().certificate.has_value() == false)
if (secc_key_pair.info.value().certificate.has_value())
certificate_path = secc_key_pair.info.value().certificate.value();
else
certificate_path = secc_key_pair.info.value().certificate_single.value();
Expand Down

0 comments on commit d1f9a77

Please sign in to comment.