Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux authored Feb 23, 2024
1 parent 96823c5 commit 1439730
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/lib/support/jsontlv/JsonToTlv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,7 @@ CHIP_ERROR ParseJsonName(const std::string name, ElementContext & elementCtx, ui
{
return CHIP_ERROR_INVALID_ARGUMENT;
}
else
{
tagNumber = static_cast<uint32_t>(result);
}

tagNumber = static_cast<uint32_t>(result);
elementType = nameFields[1].c_str();
}
else if (nameFields.size() == 3)
Expand All @@ -253,11 +249,7 @@ CHIP_ERROR ParseJsonName(const std::string name, ElementContext & elementCtx, ui
{
return CHIP_ERROR_INVALID_ARGUMENT;
}
else
{
tagNumber = static_cast<uint32_t>(result);
}

tagNumber = static_cast<uint32_t>(result);
elementType = nameFields[2].c_str();
}
else
Expand Down

0 comments on commit 1439730

Please sign in to comment.