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 yunhanw-google committed May 30, 2024
1 parent 1ca6ec6 commit 726a918
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/chip-tool/commands/clusters/ClusterCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
chip::CommandId commandId,
const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Type & value)
{
mPeerNodeId = device->GetDeviceId();
mPeerNodeId = device->GetDeviceId();
mFabricIndex = device->GetSecureSession().Value()->GetFabricIndex();
ReturnErrorOnFailure(InteractionModelCommands::SendCommand(device, endpointId, clusterId, commandId, value));

Expand Down Expand Up @@ -111,10 +111,10 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
return;
}
}
if ((path.mEndpointId == chip::kRootEndpointId) && (path.mClusterId == chip::app::Clusters::IcdManagement::Id) && (path.mCommandId == chip::app::Clusters::IcdManagement::Commands::UnregisterClient::Id))
if ((path.mEndpointId == chip::kRootEndpointId) && (path.mClusterId == chip::app::Clusters::IcdManagement::Id) &&
(path.mCommandId == chip::app::Clusters::IcdManagement::Commands::UnregisterClient::Id))
{
CHIP_ERROR deleteEntryError =
CHIPCommand::sICDClientStorage.DeleteEntry(chip::ScopedNodeId(mPeerNodeId, mFabricIndex));
CHIP_ERROR deleteEntryError = CHIPCommand::sICDClientStorage.DeleteEntry(chip::ScopedNodeId(mPeerNodeId, mFabricIndex));
if (deleteEntryError != CHIP_NO_ERROR)
{
ChipLogError(chipTool, "Failed to delete ICD entry: %s", chip::ErrorStr(deleteEntryError));
Expand Down Expand Up @@ -220,7 +220,7 @@ class ClusterCommand : public InteractionModelCommands, public ModelCommand, pub
chip::ClusterId mClusterId;
chip::CommandId mCommandId;
chip::FabricIndex mFabricIndex = 0;
chip::NodeId mPeerNodeId = 0;
CHIP_ERROR mError = CHIP_NO_ERROR;
chip::NodeId mPeerNodeId = 0;
CHIP_ERROR mError = CHIP_NO_ERROR;
CustomArgument mPayload;
};

0 comments on commit 726a918

Please sign in to comment.