Skip to content

Commit

Permalink
Add suppression
Browse files Browse the repository at this point in the history
  • Loading branch information
almostchristian committed Oct 7, 2022
1 parent feac175 commit 2a383a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ConfigurationProcessor.Core/Implementation/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public static void CallConfigurationMethods(

if (isCollection)
{
#pragma warning disable CA1031 // Do not catch general exception types
try
{
#pragma warning disable S1481 // Unused local variables should be removed
Expand All @@ -71,6 +72,7 @@ public static void CallConfigurationMethods(
{
return false;
}
#pragma warning restore CA1031 // Do not catch general exception types
}

return isCollection;
Expand Down

0 comments on commit 2a383a7

Please sign in to comment.