Skip to content

Commit 5650773

Browse files
Shashwat-PatniTommyPec
authored andcommitted
internet:(fixes #1205) Remove if condition preventing the evaluation of an ASSERT
1 parent 733496c commit 5650773

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/internet/model/global-route-manager-impl.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,9 @@ SPFVertex::~SPFVertex()
129129
uint32_t orgCount = (*piter)->m_children.size();
130130
(*piter)->m_children.remove(this);
131131
uint32_t newCount = (*piter)->m_children.size();
132-
if (orgCount > newCount)
133-
{
134-
NS_ASSERT_MSG(orgCount > newCount,
135-
"Unable to find the current vertex from its parents --- impossible!");
136-
}
132+
133+
NS_ASSERT_MSG(orgCount > newCount,
134+
"Unable to find the current vertex from its parents --- impossible!");
137135
}
138136

139137
// delete children

0 commit comments

Comments
 (0)