Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs =================================================================== diff -u -rd207738be4ce6f50f4e3e00839ea433acea10bbd -r4dcf687d02ad303a8b830cd11c7d15a6f3f25116 --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision d207738be4ce6f50f4e3e00839ea433acea10bbd) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Utils/GrassCoverErosionInwardsHelper.cs (.../GrassCoverErosionInwardsHelper.cs) (revision 4dcf687d02ad303a8b830cd11c7d15a6f3f25116) @@ -103,12 +103,7 @@ private static SectionSegments[] MakeSectionSegments(IEnumerable sectionResults) { - SectionSegments[] sectionSegments = - (from sectionResult in sectionResults - let section = sectionResult.Section - select new SectionSegments(section) - ).ToArray(); - return sectionSegments; + return sectionResults.Select(sr => new SectionSegments(sr.Section)).ToArray(); } private static FailureMechanismSection FindSectionForCalculation(SectionSegments[] sectionSegmentsCollection, GrassCoverErosionInwardsCalculation calculation)