mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Use ArgumentNullException.ThrowIfNull when possible (#2591)
* Misc. * Fix mistake
This commit is contained in:
@@ -591,9 +591,7 @@ internal static class PluginsCore {
|
||||
}
|
||||
|
||||
internal static async Task OnUpdateFinished(Version newVersion) {
|
||||
if (newVersion == null) {
|
||||
throw new ArgumentNullException(nameof(newVersion));
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(newVersion);
|
||||
|
||||
if ((ActivePlugins == null) || (ActivePlugins.Count == 0)) {
|
||||
return;
|
||||
@@ -607,9 +605,7 @@ internal static class PluginsCore {
|
||||
}
|
||||
|
||||
internal static async Task OnUpdateProceeding(Version newVersion) {
|
||||
if (newVersion == null) {
|
||||
throw new ArgumentNullException(nameof(newVersion));
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(newVersion);
|
||||
|
||||
if ((ActivePlugins == null) || (ActivePlugins.Count == 0)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user