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