[Wox.Infrastructure] Enable analyzer and fix warnings (#16996)

This commit is contained in:
CleanCodeDeveloper
2022-03-14 16:44:17 +01:00
committed by GitHub
parent 7365ba14d0
commit 561882c2f1
7 changed files with 15 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ namespace Wox.Infrastructure
{
if (obj == null)
{
throw new NullReferenceException();
throw new ArgumentNullException(nameof(obj));
}
else
{
@@ -40,7 +40,7 @@ namespace Wox.Infrastructure
{
if (obj == null)
{
throw new NullReferenceException();
throw new ArgumentNullException(nameof(obj));
}
}