From ca4a4ea88b22e0c3cf8f5d0012433a49fb228da6 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 3 Jul 2024 16:38:40 +0100 Subject: [PATCH] remove nullable --- .../ToHost/TopLevel/LevelToHostTopLevelConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DUI3-DX/Converters/Revit/Speckle.Converters.RevitShared/ToHost/TopLevel/LevelToHostTopLevelConverter.cs b/DUI3-DX/Converters/Revit/Speckle.Converters.RevitShared/ToHost/TopLevel/LevelToHostTopLevelConverter.cs index 69f72e4f18..098f3a2d13 100644 --- a/DUI3-DX/Converters/Revit/Speckle.Converters.RevitShared/ToHost/TopLevel/LevelToHostTopLevelConverter.cs +++ b/DUI3-DX/Converters/Revit/Speckle.Converters.RevitShared/ToHost/TopLevel/LevelToHostTopLevelConverter.cs @@ -59,7 +59,7 @@ public override DB.Level Convert(SOBE.Level target) private static DB.Level GetExistingLevelByElevation(IEnumerable docLevels, double elevation) { - return docLevels.FirstOrDefault(l => Math.Abs(l.Elevation - elevation) < RevitConversionContextStack.TOLERANCE); + return docLevels.First(l => Math.Abs(l.Elevation - elevation) < RevitConversionContextStack.TOLERANCE); } private DB.ViewPlan CreateViewPlan(string name, DB.ElementId levelId)