Skip to content

Commit

Permalink
Fix scope on err
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Aug 22, 2024
1 parent f6ccf2e commit e1b7033
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,11 @@ void ThermostatAttrAccess::CommitAtomicWrite(CommandHandler * commandObj, const
{
auto & attributeStatus = attributeStatuses[i];
auto statusCode = Status::Success;
CHIP_ERROR err;
switch (attributeStatus.attributeID)
{
case Presets::Id:
CHIP_ERROR err = delegate->CommitPendingPresets();
err = delegate->CommitPendingPresets();
if (err != CHIP_NO_ERROR)
{
statusCode = Status::InvalidInState;
Expand Down

0 comments on commit e1b7033

Please sign in to comment.