[Wox.Plugin] Enable analyzer and fix warnings (#16547)

This commit is contained in:
CleanCodeDeveloper
2022-03-08 17:46:36 +01:00
committed by GitHub
parent 9cf39654d9
commit ec3ea5c4ae
4 changed files with 7 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ namespace Wox.Plugin.Common
if (string.IsNullOrEmpty(Path))
{
throw new Exception("Browser path is null or empty.");
throw new ArgumentOutOfRangeException(nameof(Path), "Browser path is null or empty.");
}
}
catch (Exception e)
@@ -217,7 +217,7 @@ namespace Wox.Plugin.Common
return stringBuilder.ToString();
}
throw new Exception("Could not load indirect string.");
throw new ArgumentNullException(nameof(Path), "Could not load indirect string.");
}
}
}