Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
nivi-apple and bzbarsky-apple authored Aug 20, 2024
1 parent e14bf1d commit 8370468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/thermostat-server/thermostat-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A

uint8_t buffer[kPresetHandleSize];
MutableByteSpan activePresetHandleSpan(buffer);
DataModel::Nullable<MutableByteSpan> activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan);
auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan);

CHIP_ERROR err = delegate->GetActivePresetHandle(activePresetHandle);
ReturnErrorOnFailure(err);
Expand Down Expand Up @@ -1465,7 +1465,7 @@ imcode commitPresets(Delegate * delegate, EndpointId endpoint)
// attribute set, continue with other checks.
uint8_t buffer[kPresetHandleSize];
MutableByteSpan activePresetHandleSpan(buffer);
DataModel::Nullable<MutableByteSpan> activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan);
auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan);

err = delegate->GetActivePresetHandle(activePresetHandle);

Expand Down

0 comments on commit 8370468

Please sign in to comment.