mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Inline out variable declaration
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user