diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-05 18:10:56 +0200 |
| commit | 30ce346f343ca61f921ec7d6faf2f06311c04e71 (patch) | |
| tree | 009b45907371f10fe4c3195708287f4b464df7dd /Emby.Server.Implementations/Devices | |
| parent | 29539174a3de47c151cc7c7fd192100e6fbe48d7 (diff) | |
Enable nullabe reference types for MediaBrowser.Model
Diffstat (limited to 'Emby.Server.Implementations/Devices')
| -rw-r--r-- | Emby.Server.Implementations/Devices/DeviceManager.cs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceManager.cs b/Emby.Server.Implementations/Devices/DeviceManager.cs index adb8e793d..e8837892c 100644 --- a/Emby.Server.Implementations/Devices/DeviceManager.cs +++ b/Emby.Server.Implementations/Devices/DeviceManager.cs @@ -86,13 +86,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) @@ -251,14 +245,12 @@ namespace Emby.Server.Implementations.Devices if (CameraImageUploaded != null) { - CameraImageUploaded?.Invoke(this, new GenericEventArgs<CameraImageUploadInfo> - { - Argument = new CameraImageUploadInfo + CameraImageUploaded?.Invoke(this, new GenericEventArgs<CameraImageUploadInfo>( + new CameraImageUploadInfo { Device = device, FileInfo = file - } - }); + })); } } |
