Skip to content

Commit

Permalink
Make clang-tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Jul 6, 2023
1 parent 4a94492 commit 73117ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/format/protocol_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ void PayloadDecoderBase::NextFromContentRead(PayloadEntry & entry)
ExitContainer(entry);
return;
}
else if (err != CHIP_NO_ERROR)

if (err != CHIP_NO_ERROR)
{
mValueBuilder.Reset().AddFormat("ERROR on TLV Next: %" CHIP_ERROR_FORMAT, err.Format());
entry = PayloadEntry::SimpleValue("TLV_ERR", mValueBuilder.c_str());
Expand Down Expand Up @@ -546,7 +547,8 @@ void PayloadDecoderBase::NextFromValueRead(PayloadEntry & entry)
ExitContainer(entry);
return;
}
else if (err != CHIP_NO_ERROR)

if (err != CHIP_NO_ERROR)
{
mValueBuilder.Reset().AddFormat("ERROR on TLV Next: %" CHIP_ERROR_FORMAT, err.Format());
entry = PayloadEntry::SimpleValue("TLV_ERR", mValueBuilder.c_str());
Expand Down

0 comments on commit 73117ce

Please sign in to comment.