Skip to content

Commit

Permalink
make code consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 1, 2023
1 parent 775e875 commit 4c40df0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ Protocols::InteractionModel::Status MatterTimeFormatLocalizationClusterServerPre
VerifyOrReturnValue(sizeof(uint8_t) == size, Protocols::InteractionModel::Status::InvalidValue);

auto hourFormat = SafeCast<HourFormatEnum>(*value);
if (!hourFormat.HasValue())
{
return Protocols::InteractionModel::Status::ConstraintError;
}
VerifyOrReturnValue(hourFormat.HasValue(), Protocols::InteractionModel::Status::ConstraintError);

return Protocols::InteractionModel::Status::Success;
}
Expand Down

0 comments on commit 4c40df0

Please sign in to comment.