Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and crlonxp committed Oct 7, 2024
1 parent c56af30 commit 8065f9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/transport/SecureSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,11 @@ class SecureSession : public Session, public ReferenceCounted<SecureSession, Sec

bool IsCommissioningSession() const override;

bool AllowsMRP() const override { return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF)); }
bool AllowsMRP() const override
{
return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF));
}

bool AllowsLargePayload() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kTcp; }

Expand Down
7 changes: 5 additions & 2 deletions src/transport/UnauthenticatedSessionTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,11 @@ class UnauthenticatedSession : public Session, public ReferenceCounted<Unauthent
return Access::SubjectDescriptor(); // return an empty ISD for unauthenticated session.
}

bool AllowsMRP() const override { return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF)); }
bool AllowsMRP() const override
{
return ((GetPeerAddress().GetTransportType() == Transport::Type::kUdp) ||
(GetPeerAddress().GetTransportType() == Transport::Type::kWiFiPAF));
}

bool AllowsLargePayload() const override { return GetPeerAddress().GetTransportType() == Transport::Type::kTcp; }

Expand Down

0 comments on commit 8065f9f

Please sign in to comment.