Suppress warnings

This commit is contained in:
Michael Bucari-Tovo 2022-12-19 09:48:18 -07:00
parent 47968304c9
commit 357b220ace
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
@ -68,8 +69,9 @@ namespace LibationAvalonia
return true;
}
catch (Exception ex)
catch (Exception exDebug)
{
Serilog.Log.Logger.Debug(exDebug, "Silent failure");
return false;
}
}

View File

@ -21,6 +21,7 @@ using Newtonsoft.Json.Linq;
namespace AccountsTests
{
#pragma warning disable CS8981 // The type name only contains lower-cased ascii characters. Such names may become reserved for the language.
public class AccountsTestBase
{
protected string EMPTY_FILE { get; } = "{\r\n \"Accounts\": []\r\n}".Replace("\r\n", Environment.NewLine);
@ -590,4 +591,5 @@ namespace AccountsTests
}
}
}
#pragma warning restore CS8981
}