mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-07 19:02:11 +01:00
Remove FireEventIfNotNull
It's a pretty useless "helper" class
This commit is contained in:
@@ -184,7 +184,7 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
|
||||
if (WebSocketConnected != null)
|
||||
{
|
||||
EventHelper.FireEventIfNotNull(WebSocketConnected, this, new GenericEventArgs<IWebSocketConnection>(connection), _logger);
|
||||
WebSocketConnected?.Invoke(this, new GenericEventArgs<IWebSocketConnection>(connection));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
|
||||
void socket_Closed(object sender, EventArgs e)
|
||||
{
|
||||
EventHelper.FireEventIfNotNull(Closed, this, EventArgs.Empty, _logger);
|
||||
Closed?.Invoke(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user