Skip to content

Commit

Permalink
Fixing removed elses
Browse files Browse the repository at this point in the history
Fixing removed elses
  • Loading branch information
BovineOx committed Nov 9, 2023
1 parent e5c7023 commit 4bc4059
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 4 additions & 2 deletions Objects/Objects/BuiltElements/Beam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ internal set
{
archicadLevel = value as ArchicadLevel;
}

throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
else
{
throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions Objects/Objects/BuiltElements/Column.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ internal set
{
archicadLevel = value as ArchicadLevel;
}

throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
else
{
throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions Objects/Objects/BuiltElements/Floor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ internal set
{
archicadLevel = value as ArchicadLevel;
}

throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
else
{
throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions Objects/Objects/BuiltElements/Roof.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ internal set
{
archicadLevel = value as ArchicadLevel;
}

throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
else
{
throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
}
}
}

Expand Down
6 changes: 4 additions & 2 deletions Objects/Objects/BuiltElements/Wall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,10 @@ internal set
{
archicadLevel = value as ArchicadLevel;
}

throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
else
{
throw new ArgumentException($"Expected object of type {nameof(ArchicadLevel)}");
}
}
}

Expand Down

0 comments on commit 4bc4059

Please sign in to comment.