Skip to content

Commit

Permalink
Fix one more shadowing complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
andy31415 committed Dec 18, 2024
1 parent b864597 commit 1ac6576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/clusters/descriptor/descriptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ CHIP_ERROR DescriptorAttrAccess::ReadPartsAttribute(EndpointId endpoint, Attribu
});
}

auto endpoints = InteractionModelEngine::GetInstance()->GetDataModelProvider()->GetEndpoints();
auto endpointsIterator = InteractionModelEngine::GetInstance()->GetDataModelProvider()->GetEndpoints();

VerifyOrReturnError(endpoints->SeekTo(endpoint), CHIP_ERROR_KEY_NOT_FOUND);
VerifyOrReturnError(endpointsIterator->SeekTo(endpoint), CHIP_ERROR_KEY_NOT_FOUND);

auto endpointInfo = endpoints->GetMetadata();
auto endpointInfo = endpointsIterator->GetMetadata();
// if SEEK returns true, metadata MUST be valid
VerifyOrReturnError(endpointInfo.has_value(), CHIP_ERROR_INTERNAL);

Expand Down

0 comments on commit 1ac6576

Please sign in to comment.