Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and tcarmelveilleux committed Aug 29, 2023
1 parent 5335092 commit 27fe59f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/crypto/CHIPCryptoPAL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ CHIP_ERROR Find16BitUpperCaseHexAfterPrefix(const ByteSpan & buffer, const char
// Scan string from left to right, to find the desired full matching substring.
for (size_t start_idx = 0; start_idx < buffer.size(); start_idx++)
{
const uint8_t *cursor = buffer.data() + start_idx;
size_t remaining = buffer.size() - start_idx;
const uint8_t * cursor = buffer.data() + start_idx;
size_t remaining = buffer.size() - start_idx;

if (remaining < prefix_span.size())
{
Expand All @@ -195,7 +195,9 @@ CHIP_ERROR Find16BitUpperCaseHexAfterPrefix(const ByteSpan & buffer, const char
{
// Did not find prefix, move to next position.
continue;
} else {
}
else
{
// Found prefix, skip to possible hex value.
found_prefix_at_least_once = true;
cursor += prefix_span.size();
Expand Down

0 comments on commit 27fe59f

Please sign in to comment.