Skip to content

Commit 67a5129

Browse files
committedJul 5, 2024
style
1 parent 4676c50 commit 67a5129

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed
 

‎src/app/clusters/on-off-server/on-off-server.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -560,17 +560,11 @@ Status OnOffServer::getOnOffValueForStartUp(chip::EndpointId endpoint, bool & on
560560
{
561561
app::DataModel::Nullable<OnOff::StartUpOnOffEnum> startUpOnOff;
562562
Status status = Attributes::StartUpOnOff::Get(endpoint, startUpOnOff);
563-
if (status != Status::Success)
564-
{
565-
return status;
566-
}
563+
VerifyOrReturnError(status == Status::Success, status);
567564

568565
bool currentOnOff = false;
569566
status = Attributes::OnOff::Get(endpoint, &currentOnOff);
570-
if (status != Status::Success)
571-
{
572-
return status;
573-
}
567+
VerifyOrReturnError(status == Status::Success, status);
574568

575569
if (startUpOnOff.IsNull() || GetBootReason() == BootReasonType::kSoftwareUpdateCompleted)
576570
{

0 commit comments

Comments
 (0)