modify demo style

Signed-off-by: wuqi <wuqi108@h-partners.com>
This commit is contained in:
wuqi 2024-09-27 16:56:47 +08:00
parent 63a9687300
commit fe3f47bc00

View File

@ -136,21 +136,20 @@ std::shared_ptr<Asn1Node> Asn1Node::Asn1GetGrandson(const uint32_t firstLevelTag
{
std::shared_ptr<Asn1Node> resultNode = nullptr;
resultNode = Asn1GetChild(firstLevelTag);
if (resultNode == nullptr)
{
if (resultNode == nullptr) {
return nullptr;
}
resultNode = resultNode->Asn1GetChild(secondLevelTag);
return resultNode;
}
std::shared_ptr<Asn1Node> Asn1Node::Asn1GetGreatGrandson(const uint32_t firstLevelTag, const uint32_t secondLevelTag,
const uint32_t thirdLevelTag)
{
std::shared_ptr<Asn1Node> resultNode = nullptr;
resultNode = Asn1GetGrandson(firstLevelTag, secondLevelTag);
if (resultNode == nullptr)
{
if (resultNode == nullptr) {
return nullptr;
}
resultNode = resultNode->Asn1GetChild(thirdLevelTag);