diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-17 18:47:41 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-17 20:24:01 +0100 |
| commit | 321c440739ae7657349c6a8e672a88bea1d6753c (patch) | |
| tree | 7ad5309f6df0b7e4a5f12760535962340ce1307e /Emby.Dlna/Eventing/EventManager.cs | |
| parent | a358631040ad5169c5f104c2577c4d63530d29f2 (diff) | |
Reformat JustAMan review pt1 changes
Refs #575
Diffstat (limited to 'Emby.Dlna/Eventing/EventManager.cs')
| -rw-r--r-- | Emby.Dlna/Eventing/EventManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/Eventing/EventManager.cs b/Emby.Dlna/Eventing/EventManager.cs index c17f64a57a..b4ff3ec1d5 100644 --- a/Emby.Dlna/Eventing/EventManager.cs +++ b/Emby.Dlna/Eventing/EventManager.cs @@ -95,7 +95,7 @@ namespace Emby.Dlna.Eventing { _logger.LogDebug("Cancelling event subscription {0}", subscriptionId); - _subscriptions.TryRemove(subscriptionId, out var sub); + _subscriptions.TryRemove(subscriptionId, out EventSubscription sub); return new EventSubscriptionResponse { @@ -126,7 +126,7 @@ namespace Emby.Dlna.Eventing private EventSubscription GetSubscription(string id, bool throwOnMissing) { - if (!_subscriptions.TryGetValue(id, out var e) && throwOnMissing) + if (!_subscriptions.TryGetValue(id, out EventSubscription e) && throwOnMissing) { throw new ResourceNotFoundException("Event with Id " + id + " not found."); } |
