diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-10-17 14:31:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-17 14:31:35 +0200 |
| commit | 84bbf757fa5fdf9fef45d9a61e686941e6901ba0 (patch) | |
| tree | 8f02206fad8df92ffd7a5141690e0c960c9615d5 /Jellyfin.Networking/Extensions/NetworkExtensions.cs | |
| parent | 59ac5481288bb75b5768d1286038b5c2d3844c78 (diff) | |
| parent | 38d962242ad0b4d3cf10b175836bf1e5e9b60d39 (diff) | |
Merge pull request #10366 from goremykin/fix-resharper-warnings
Diffstat (limited to 'Jellyfin.Networking/Extensions/NetworkExtensions.cs')
| -rw-r--r-- | Jellyfin.Networking/Extensions/NetworkExtensions.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Networking/Extensions/NetworkExtensions.cs b/Jellyfin.Networking/Extensions/NetworkExtensions.cs index 2d921a482..a1e1140f1 100644 --- a/Jellyfin.Networking/Extensions/NetworkExtensions.cs +++ b/Jellyfin.Networking/Extensions/NetworkExtensions.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Net; using System.Net.Sockets; using System.Text.RegularExpressions; @@ -204,7 +203,7 @@ public static partial class NetworkExtensions { var ipBlock = splitString.Current; var address = IPAddress.None; - if (negated && ipBlock.StartsWith<char>("!") && IPAddress.TryParse(ipBlock[1..], out var tmpAddress)) + if (negated && ipBlock.StartsWith("!") && IPAddress.TryParse(ipBlock[1..], out var tmpAddress)) { address = tmpAddress; } |
