Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
Signed-off-by: Piet Gömpel <[email protected]>
  • Loading branch information
Pietfried committed Jan 9, 2025
1 parent 8daca70 commit adc0be8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/Auth/include/AuthHandler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ class AuthHandler {
* @param id_token The id token of the request.
* @return The status and optional evse id if an evse was selected.
*/
SelectEvseResult select_evse(const std::vector<int>& selected_evses, const IdToken& id_token, std::unique_lock<std::mutex>& lk);
SelectEvseResult select_evse(const std::vector<int>& selected_evses, const IdToken& id_token,
std::unique_lock<std::mutex>& lk);
bool is_authorization_withdrawn(const std::vector<int>& selected_evses, const IdToken& id_token);

int get_latest_plugin(const std::vector<int>& evse_ids);
Expand Down
6 changes: 3 additions & 3 deletions modules/Auth/lib/AuthHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ TokenHandlingResult AuthHandler::handle_token(const ProvidedIdToken& provided_to
*/
const auto select_evse_result =
this->select_evse(referenced_evses, provided_token.id_token, lk); // might block

if (not select_evse_result.evse_id.has_value()) {
if (select_evse_result.status == SelectEvseReturnStatus::TimeOut) {
return TokenHandlingResult::TIMEOUT;
Expand Down Expand Up @@ -458,8 +458,8 @@ int AuthHandler::get_latest_plugin(const std::vector<int>& evse_ids) {
return -1;
}

AuthHandler::SelectEvseResult AuthHandler::select_evse(const std::vector<int>& selected_evses,
const IdToken& id_token, std::unique_lock<std::mutex>& lk) {
AuthHandler::SelectEvseResult AuthHandler::select_evse(const std::vector<int>& selected_evses, const IdToken& id_token,
std::unique_lock<std::mutex>& lk) {
SelectEvseResult result;

if (selected_evses.size() == 1) {
Expand Down

0 comments on commit adc0be8

Please sign in to comment.