Skip to content

Commit dd30a42

Browse files
Whitespace change
1 parent f6a0828 commit dd30a42

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MidasCivil_Adapter/CRUD/Read/Properties/SectionProperties.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private List<ISectionProperty> ReadSectionProperties(List<string> ids = null)
5151
for (int i = 0; i < sectionProperties.Count; i++)
5252
{
5353
string line = sectionProperties[i];
54-
if(!(line.Length < 2))
54+
if (!(line.Length < 2))
5555
{
5656
if (types.Any(x => x == sectionProperties[i].Split(',')[1].Trim()))
5757
indexes.Add(i);
@@ -89,7 +89,7 @@ private List<ISectionProperty> ReadSectionProperties(List<string> ids = null)
8989
if (numberColumns == 16)
9090
{
9191
// delimitted[15] is the database name of the section
92-
bhomSectionProperty = (ISectionProperty)Engine.Library.Query.Match("Structure\\SectionProperties",split[15]);
92+
bhomSectionProperty = (ISectionProperty)Engine.Library.Query.Match("Structure\\SectionProperties", split[15]);
9393
if (bhomSectionProperty == null)
9494
Engine.Base.Compute.RecordWarning("The database section " + split[2] + " could not be found in the BHoM datasets - a null value has been assigned.");
9595
else
@@ -166,7 +166,7 @@ private List<ISectionProperty> ReadSectionProperties(List<string> ids = null)
166166
// Inner polylines always follow outer, find the start of the next IPOLY otherwise it's the end of the PSC Section
167167
int iPolyStart = iOPolyEnd + 1;
168168
int iPolyEnd = -2;
169-
if(!(iPolyStart + 1 > pscSectionProperty.Count - 1))
169+
if (!(iPolyStart + 1 > pscSectionProperty.Count - 1))
170170
iPolyEnd = pscSectionProperty.FindIndex(iPolyStart + 1, x => x.Contains("IPOLY")) - 1;
171171

172172
// This is the case where IPOLY is contained on a single line (i.e. three points)
@@ -181,18 +181,18 @@ private List<ISectionProperty> ReadSectionProperties(List<string> ids = null)
181181
// Get indexes for next polyline, IF statement to avoid out of index if there is a single IPOLY
182182
iPolyStart = iPolyEnd + 1;
183183
//This is the last IPOLY
184-
if(iPolyStart > pscSectionProperty.Count() -1)
184+
if (iPolyStart > pscSectionProperty.Count() - 1)
185185
iPolyEnd = -2;
186186
else
187187
iPolyEnd = pscSectionProperty.FindIndex(iPolyStart + 1, x => x.Contains("IPOLY")) - 1;
188188
}
189189

190190
// For the final inner polyline contained on a single line
191-
if (iPolyStart == pscSectionProperty.Count -1 && iPolyEnd == -2)
191+
if (iPolyStart == pscSectionProperty.Count - 1 && iPolyEnd == -2)
192192
{
193193
iPolyEnd = pscSectionProperty.Count - 1;
194194
polys.Add(new Polyline() { ControlPoints = ParsePoints(pscSectionProperty, iPolyStart, iPolyEnd, "IPOLY") });
195-
}
195+
}
196196

197197
}
198198

0 commit comments

Comments
 (0)