Skip to content

Commit d5d553f

Browse files
committed
Fix Coverity unreachable code warning
1 parent 0099b6e commit d5d553f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/core/layout/qgsabstractreportsection.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ QgsProject *QgsAbstractReportSection::project()
3939
QgsAbstractReportSection *current = this;
4040
while ( QgsAbstractReportSection *parent = current->parentSection() )
4141
{
42-
if ( !parent )
43-
return nullptr;
44-
4542
if ( QgsReport *report = dynamic_cast< QgsReport * >( parent ) )
4643
return report->layoutProject();
4744

0 commit comments

Comments
 (0)