aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/HttpResponseParser.cs
diff options
context:
space:
mode:
authorAmbulantRex <21176662+AmbulantRex@users.noreply.github.com>2023-04-15 07:11:33 -0600
committerGitHub <noreply@github.com>2023-04-15 07:11:33 -0600
commit4a0b135b7a18ae27d0a11905d31d2ba621079225 (patch)
tree3c10db9a166efae9e69f9f32cce5d86767523da5 /RSSDP/HttpResponseParser.cs
parent7dd4201971f1bb19ea380f2ca83aed11206cfe97 (diff)
parentc2b88f1852b16c2dde69b13c89feb34f78268057 (diff)
Merge branch 'jellyfin:master' into whitelist-dlls
Diffstat (limited to 'RSSDP/HttpResponseParser.cs')
-rw-r--r--RSSDP/HttpResponseParser.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/RSSDP/HttpResponseParser.cs b/RSSDP/HttpResponseParser.cs
index 3e361465d..71b7a7b99 100644
--- a/RSSDP/HttpResponseParser.cs
+++ b/RSSDP/HttpResponseParser.cs
@@ -77,8 +77,7 @@ namespace Rssdp.Infrastructure
message.Version = ParseHttpVersion(parts[0].Trim());
- int statusCode = -1;
- if (!Int32.TryParse(parts[1].Trim(), out statusCode))
+ if (!Int32.TryParse(parts[1].Trim(), out var statusCode))
{
throw new ArgumentException("data status line is invalid. Status code is not a valid integer.", nameof(data));
}