Skip to content

Commit

Permalink
clang format cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
birarda committed Aug 19, 2024
1 parent a7f7f07 commit 9e51b5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/mls/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ class State
static bool valid_restart(const std::vector<CachedProposal>& proposals,
ResumptionPSKUsage allowed_usage);

static bool valid_external_proposal_type(const Proposal::Type proposal_type);
static bool valid_external_proposal_type(const Proposal::Type proposal_type);

CommitParams infer_commit_type(
const std::optional<LeafIndex>& sender,
Expand Down
7 changes: 4 additions & 3 deletions src/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ State::cache_proposal(AuthenticatedContent content_auth)

const auto& proposal = var::get<Proposal>(content_auth.content.content);

if (content_auth.content.sender.sender_type() == SenderType::external
&& !valid_external_proposal_type(proposal.proposal_type())) {
if (content_auth.content.sender.sender_type() == SenderType::external &&
!valid_external_proposal_type(proposal.proposal_type())) {
throw ProtocolError("Invalid external proposal");
}

Expand Down Expand Up @@ -1875,7 +1875,8 @@ State::valid_restart(const std::vector<CachedProposal>& proposals,
return acceptable_psks && found_allowed;
}

bool State::valid_external_proposal_type(const Proposal::Type proposal_type)
bool
State::valid_external_proposal_type(const Proposal::Type proposal_type)
{
switch (proposal_type) {
case ProposalType::add:
Expand Down

0 comments on commit 9e51b5e

Please sign in to comment.