mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
fix SA1503 for one line if statements
This commit is contained in:
@@ -22,7 +22,10 @@ namespace Rssdp
|
||||
/// <exception cref="ArgumentNullException">Thrown if the <paramref name="discoveredDevice"/> parameter is null.</exception>
|
||||
public DeviceAvailableEventArgs(DiscoveredSsdpDevice discoveredDevice, bool isNewlyDiscovered)
|
||||
{
|
||||
if (discoveredDevice == null) throw new ArgumentNullException(nameof(discoveredDevice));
|
||||
if (discoveredDevice == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(discoveredDevice));
|
||||
}
|
||||
|
||||
_DiscoveredDevice = discoveredDevice;
|
||||
_IsNewlyDiscovered = isNewlyDiscovered;
|
||||
|
||||
Reference in New Issue
Block a user