From 837046801dc98e179f9682d5619c9e2eeb7d2053 Mon Sep 17 00:00:00 2001 From: Nivi Sarkar <55898241+nivi-apple@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:28:16 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Boris Zbarsky --- src/app/clusters/thermostat-server/thermostat-server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/clusters/thermostat-server/thermostat-server.cpp b/src/app/clusters/thermostat-server/thermostat-server.cpp index 284df7716e801a..8fe70211eeda1a 100644 --- a/src/app/clusters/thermostat-server/thermostat-server.cpp +++ b/src/app/clusters/thermostat-server/thermostat-server.cpp @@ -762,7 +762,7 @@ CHIP_ERROR ThermostatAttrAccess::Read(const ConcreteReadAttributePath & aPath, A uint8_t buffer[kPresetHandleSize]; MutableByteSpan activePresetHandleSpan(buffer); - DataModel::Nullable activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); + auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); CHIP_ERROR err = delegate->GetActivePresetHandle(activePresetHandle); ReturnErrorOnFailure(err); @@ -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 activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); + auto activePresetHandle = DataModel::MakeNullable(activePresetHandleSpan); err = delegate->GetActivePresetHandle(activePresetHandle);