diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2022-09-09 13:27:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 13:27:52 +0200 |
| commit | 1cbf5431aa74274627082cb02349a3241cd8801b (patch) | |
| tree | 37879e5acc95a72082d162addb1789165bf4cd36 /Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs | |
| parent | c12cab6844c5253240b725e3de634fb505a23d1b (diff) | |
| parent | 5036afd69127cc6f6b0801329b2b04f21aee71f5 (diff) | |
Merge pull request #8250 from Bond-009/minor18
Minor cleanup
Diffstat (limited to 'Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs index 2a4a8fb13..c42cec593 100644 --- a/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs +++ b/Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs @@ -365,11 +365,7 @@ namespace Emby.Server.Implementations.AppBase validatingStore.Validate(currentConfiguration, configuration); } - NamedConfigurationUpdating?.Invoke(this, new ConfigurationUpdateEventArgs - { - Key = key, - NewConfiguration = configuration - }); + NamedConfigurationUpdating?.Invoke(this, new ConfigurationUpdateEventArgs(key, configuration)); _configurations.AddOrUpdate(key, configuration, (_, _) => configuration); @@ -391,11 +387,7 @@ namespace Emby.Server.Implementations.AppBase /// <param name="configuration">The old configuration.</param> protected virtual void OnNamedConfigurationUpdated(string key, object configuration) { - NamedConfigurationUpdated?.Invoke(this, new ConfigurationUpdateEventArgs - { - Key = key, - NewConfiguration = configuration - }); + NamedConfigurationUpdated?.Invoke(this, new ConfigurationUpdateEventArgs(key, configuration)); } /// <inheritdoc /> |
