From 4bc4059fc197bad63701c48634c7b30019ecd3bc Mon Sep 17 00:00:00 2001 From: Ian Hawley Date: Thu, 9 Nov 2023 17:48:32 +0000 Subject: [PATCH] Fixing removed elses Fixing removed elses --- Objects/Objects/BuiltElements/Beam.cs | 6 ++++-- Objects/Objects/BuiltElements/Column.cs | 6 ++++-- Objects/Objects/BuiltElements/Floor.cs | 6 ++++-- Objects/Objects/BuiltElements/Roof.cs | 6 ++++-- Objects/Objects/BuiltElements/Wall.cs | 6 ++++-- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/Objects/Objects/BuiltElements/Beam.cs b/Objects/Objects/BuiltElements/Beam.cs index 0f4396ed88..f3c6ceb245 100644 --- a/Objects/Objects/BuiltElements/Beam.cs +++ b/Objects/Objects/BuiltElements/Beam.cs @@ -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)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Column.cs b/Objects/Objects/BuiltElements/Column.cs index b0ef02c697..500ffb4dc2 100644 --- a/Objects/Objects/BuiltElements/Column.cs +++ b/Objects/Objects/BuiltElements/Column.cs @@ -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)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Floor.cs b/Objects/Objects/BuiltElements/Floor.cs index 3fcdf4c837..877cbf136d 100644 --- a/Objects/Objects/BuiltElements/Floor.cs +++ b/Objects/Objects/BuiltElements/Floor.cs @@ -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)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Roof.cs b/Objects/Objects/BuiltElements/Roof.cs index 02979d3766..503f968544 100644 --- a/Objects/Objects/BuiltElements/Roof.cs +++ b/Objects/Objects/BuiltElements/Roof.cs @@ -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)}"); + } } } diff --git a/Objects/Objects/BuiltElements/Wall.cs b/Objects/Objects/BuiltElements/Wall.cs index a5dd9d358b..4a22055703 100644 --- a/Objects/Objects/BuiltElements/Wall.cs +++ b/Objects/Objects/BuiltElements/Wall.cs @@ -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)}"); + } } }