From 18cb82ef25fa454b26474b7ca32532b42d50b032 Mon Sep 17 00:00:00 2001 From: Jeremy Sinclair <4016293+snickler@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:01:07 -0400 Subject: [PATCH] [MouseJumpSettings] Use ArgumentNullException.ThrowIfNull --- src/settings-ui/Settings.UI.Library/MouseJumpSettings.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/settings-ui/Settings.UI.Library/MouseJumpSettings.cs b/src/settings-ui/Settings.UI.Library/MouseJumpSettings.cs index 2c0cf9eb3b..934351e5ad 100644 --- a/src/settings-ui/Settings.UI.Library/MouseJumpSettings.cs +++ b/src/settings-ui/Settings.UI.Library/MouseJumpSettings.cs @@ -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); }