Skip to content

Commit 0313cab

Browse files
committed
Restyler fixes
1 parent b11852c commit 0313cab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/ReadClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ CHIP_ERROR ReadClient::SendSubscribeRequest(const ReadPrepareParams & aReadPrepa
11041104
VerifyOrReturnError(aReadPrepareParams.mMinIntervalFloorSeconds <= aReadPrepareParams.mMaxIntervalCeilingSeconds,
11051105
CHIP_ERROR_INVALID_ARGUMENT);
11061106

1107-
auto err = SendSubscribeRequestImpl(aReadPrepareParams);
1107+
auto err = SendSubscribeRequestImpl(aReadPrepareParams);
11081108
if (CHIP_NO_ERROR != err)
11091109
{
11101110
MATTER_LOG_METRIC_END(Tracing::kMetricDeviceSubscriptionSetup, err);

src/protocols/secure_channel/CASESession.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,8 @@ CHIP_ERROR CASESession::EstablishSession(SessionManager & sessionManager, Fabric
528528

529529
// Use FabricTable directly to avoid situation of dangling index from stale FabricInfo
530530
// until we factor-out any FabricInfo direct usage.
531-
ReturnErrorCodeWithMetricIf(kMetricDeviceCASESession, peerScopedNodeId.GetFabricIndex() == kUndefinedFabricIndex, CHIP_ERROR_INVALID_ARGUMENT);
531+
ReturnErrorCodeWithMetricIf(kMetricDeviceCASESession, peerScopedNodeId.GetFabricIndex() == kUndefinedFabricIndex,
532+
CHIP_ERROR_INVALID_ARGUMENT);
532533
const auto * fabricInfo = fabricTable->FindFabricWithIndex(peerScopedNodeId.GetFabricIndex());
533534
ReturnErrorCodeWithMetricIf(kMetricDeviceCASESession, fabricInfo == nullptr, CHIP_ERROR_INVALID_ARGUMENT);
534535

@@ -1037,7 +1038,6 @@ CHIP_ERROR CASESession::HandleSigma1(System::PacketBufferHandle && msg)
10371038
// mRemotePubKey.Length() == initiatorPubKey.size() == kP256_PublicKey_Length.
10381039
memcpy(mRemotePubKey.Bytes(), initiatorPubKey.data(), mRemotePubKey.Length());
10391040

1040-
10411041
MATTER_LOG_METRIC_BEGIN(kMetricDeviceCASESessionSigma2);
10421042
err = SendSigma2();
10431043
if (CHIP_NO_ERROR != err)
@@ -2382,7 +2382,7 @@ CHIP_ERROR CASESession::OnMessageReceived(ExchangeContext * ec, const PayloadHea
23822382
{
23832383
// Need to capture before invoking status report since 'this' might be deallocated on successful completion of sigma3
23842384
auto key = (mState == State::kSentSigma3) ? kMetricDeviceCASESessionSigma3 : kMetricDeviceCASESessionSigma2Resume;
2385-
err = HandleStatusReport(std::move(msg), /* successExpected*/ true);
2385+
err = HandleStatusReport(std::move(msg), /* successExpected*/ true);
23862386
MATTER_LOG_METRIC_END(key, err);
23872387
}
23882388
break;

0 commit comments

Comments
 (0)