mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-18 21:48:12 +08:00
[EnvVar] Use ArgumentNullException.ThrowIfNull
This commit is contained in:
parent
f63a84e7b3
commit
d8919552bc
@ -31,10 +31,7 @@ namespace Microsoft.PowerToys.Settings.UI.Library
|
||||
WriteIndented = true,
|
||||
};
|
||||
|
||||
if (settingsUtils == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(settingsUtils));
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(settingsUtils);
|
||||
|
||||
settingsUtils.SaveSettings(JsonSerializer.Serialize(this, options), ModuleName);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user