diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2021-02-23 20:34:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-23 20:34:42 +0000 |
| commit | b5c6e5fb97d06533583f8273227f9215906c2ed1 (patch) | |
| tree | 399b5d049f5147ce0cde150b7292546b2a36b628 /Jellyfin.Networking | |
| parent | f67137004c16fc8bf2478e9898e786599469c465 (diff) | |
Update Jellyfin.Networking/Manager/NetworkManager.cs
Co-authored-by: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'Jellyfin.Networking')
| -rw-r--r-- | Jellyfin.Networking/Manager/NetworkManager.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Jellyfin.Networking/Manager/NetworkManager.cs b/Jellyfin.Networking/Manager/NetworkManager.cs index e4623cd62..3f209277f 100644 --- a/Jellyfin.Networking/Manager/NetworkManager.cs +++ b/Jellyfin.Networking/Manager/NetworkManager.cs @@ -713,11 +713,7 @@ namespace Jellyfin.Networking.Manager if ((!partial && string.Equals(interfc, token, StringComparison.OrdinalIgnoreCase)) || (partial && interfc.StartsWith(token, true, CultureInfo.InvariantCulture))) { - if (index == null) - { - index = new List<int>(); - } - + index ??= new List<int>(); index.Add(interfcIndex); } } |
