Skip to content

Commit 27fe59f

Browse files
restyled-commitstcarmelveilleux
authored andcommitted
Restyled by clang-format
1 parent 5335092 commit 27fe59f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/crypto/CHIPCryptoPAL.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ CHIP_ERROR Find16BitUpperCaseHexAfterPrefix(const ByteSpan & buffer, const char
181181
// Scan string from left to right, to find the desired full matching substring.
182182
for (size_t start_idx = 0; start_idx < buffer.size(); start_idx++)
183183
{
184-
const uint8_t *cursor = buffer.data() + start_idx;
185-
size_t remaining = buffer.size() - start_idx;
184+
const uint8_t * cursor = buffer.data() + start_idx;
185+
size_t remaining = buffer.size() - start_idx;
186186

187187
if (remaining < prefix_span.size())
188188
{
@@ -195,7 +195,9 @@ CHIP_ERROR Find16BitUpperCaseHexAfterPrefix(const ByteSpan & buffer, const char
195195
{
196196
// Did not find prefix, move to next position.
197197
continue;
198-
} else {
198+
}
199+
else
200+
{
199201
// Found prefix, skip to possible hex value.
200202
found_prefix_at_least_once = true;
201203
cursor += prefix_span.size();

0 commit comments

Comments
 (0)