[TD] remove some more superfluous nullptr checks
This commit is contained in:
@@ -86,7 +86,7 @@ TaskCosmeticLine::TaskCosmeticLine(TechDraw::DrawViewPart* partFeat,
|
||||
//existence of partFeat is checked in calling command
|
||||
|
||||
m_ce = m_partFeat->getCosmeticEdgeBySelection(m_edgeName);
|
||||
if (m_ce == nullptr) {
|
||||
if (!m_ce) {
|
||||
Base::Console().Error("TaskCosmeticLine - bad parameters. Can not proceed.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user