mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
Use null propagation
This commit is contained in:
@@ -512,22 +512,16 @@ namespace Rssdp.Infrastructure
|
||||
}
|
||||
|
||||
var handlers = this.RequestReceived;
|
||||
if (handlers is not null)
|
||||
{
|
||||
handlers(this, new RequestReceivedEventArgs(data, remoteEndPoint, receivedOnlocalIPAddress));
|
||||
}
|
||||
handlers?.Invoke(this, new RequestReceivedEventArgs(data, remoteEndPoint, receivedOnlocalIPAddress));
|
||||
}
|
||||
|
||||
private void OnResponseReceived(HttpResponseMessage data, IPEndPoint endPoint, IPAddress localIPAddress)
|
||||
{
|
||||
var handlers = this.ResponseReceived;
|
||||
if (handlers is not null)
|
||||
handlers?.Invoke(this, new ResponseReceivedEventArgs(data, endPoint)
|
||||
{
|
||||
handlers(this, new ResponseReceivedEventArgs(data, endPoint)
|
||||
{
|
||||
LocalIPAddress = localIPAddress
|
||||
});
|
||||
}
|
||||
LocalIPAddress = localIPAddress
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user