diff options
| author | Vasily <JustAMan@users.noreply.github.com> | 2020-06-03 12:26:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 12:26:54 +0300 |
| commit | 668e10ceb79fcce5713fced0cf8e6fc055105e82 (patch) | |
| tree | 2d40285824ba70c6f8faf9997091615a266c471c /Emby.Server.Implementations/Devices/DeviceManager.cs | |
| parent | c31b2798a521e6bfe7c6b078306a1b2244c0ea93 (diff) | |
| parent | 959a9655c8a6d04b1b056a5ab3a02b546af03c3f (diff) | |
Merge pull request #2767 from Bond-009/nullable3
Enable nullabe reference types for MediaBrowser.Model
Diffstat (limited to 'Emby.Server.Implementations/Devices/DeviceManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Devices/DeviceManager.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceManager.cs b/Emby.Server.Implementations/Devices/DeviceManager.cs index 2283f2433..e39e0aa78 100644 --- a/Emby.Server.Implementations/Devices/DeviceManager.cs +++ b/Emby.Server.Implementations/Devices/DeviceManager.cs @@ -62,13 +62,7 @@ namespace Emby.Server.Implementations.Devices { _authRepo.UpdateDeviceOptions(deviceId, options); - if (DeviceOptionsUpdated != null) - { - DeviceOptionsUpdated(this, new GenericEventArgs<Tuple<string, DeviceOptions>>() - { - Argument = new Tuple<string, DeviceOptions>(deviceId, options) - }); - } + DeviceOptionsUpdated?.Invoke(this, new GenericEventArgs<Tuple<string, DeviceOptions>>(new Tuple<string, DeviceOptions>(deviceId, options))); } public DeviceOptions GetDeviceOptions(string deviceId) |
