Fixes by clang-tidy

This commit is contained in:
magnesj authored and Magne Sjaastad committed 2024-01-13 16:57:44 +01:00
1 parent 9dfe155c5a
commit 340c1383fc
1 file changed
+1 -3
@@ -907,9 +907,7 @@ bool RigCellGeometryTools::lineIntersectsPolygon2D( const cvf::Vec3d a, const cv
if ( lineIntersectsLine2D( a, b, polygon[i - 1], polygon[i] ) ) return true;
}
if ( lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] ) ) return true;
return false;
return lineIntersectsLine2D( a, b, polygon[nPolyLines - 1], polygon[0] );
}
//--------------------------------------------------------------------------------------------------