From 49b277dcd920b499c5b170abb9f11762ee6c6618 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 29 Apr 2021 09:29:32 +0430 Subject: [PATCH] #108 fixing compiler warnings --- .../ArtifactService-ImportBritishLibrary.cs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/RMuseum/Services/Implementation/ArtifactService-Imports/ArtifactService-ImportBritishLibrary.cs b/RMuseum/Services/Implementation/ArtifactService-Imports/ArtifactService-ImportBritishLibrary.cs index 775aea96..b9b383dd 100644 --- a/RMuseum/Services/Implementation/ArtifactService-Imports/ArtifactService-ImportBritishLibrary.cs +++ b/RMuseum/Services/Implementation/ArtifactService-Imports/ArtifactService-ImportBritishLibrary.cs @@ -448,13 +448,9 @@ namespace RMuseum.Services.Implementation tiles.Add((x, 0), tile); max_x = x; } - catch (Exception aexp) + catch (ArgumentException)//in other cases throw the exception { - if (aexp is ArgumentException) - { - break; - } - throw aexp; + break; } } } @@ -504,13 +500,9 @@ namespace RMuseum.Services.Implementation tiles.Add((0, y), tile); max_y = y; } - catch (Exception aexp) + catch (ArgumentException)//in other cases throw the exception { - if (aexp is ArgumentException) - { - break; - } - throw aexp; + break; } } }