aboutsummaryrefslogtreecommitdiff
path: root/RSSDP/DeviceEventArgs.cs
diff options
context:
space:
mode:
authortelans <telans@protonmail.com>2020-06-20 20:35:29 +1200
committertelans <telans@protonmail.com>2020-06-20 20:35:29 +1200
commit98db8f72e01b608e6c384ecf5b107fc2d105b652 (patch)
tree8099ba47507cfa9f1ff9b6e456cf854108298a63 /RSSDP/DeviceEventArgs.cs
parent8e3d8748021fe0336e2fc1211810cc9bbe2c8850 (diff)
fix SA1503 for one line if statements
Diffstat (limited to 'RSSDP/DeviceEventArgs.cs')
-rw-r--r--RSSDP/DeviceEventArgs.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/RSSDP/DeviceEventArgs.cs b/RSSDP/DeviceEventArgs.cs
index b124527ca..2455ccbfa 100644
--- a/RSSDP/DeviceEventArgs.cs
+++ b/RSSDP/DeviceEventArgs.cs
@@ -16,7 +16,10 @@ namespace Rssdp
/// <exception cref="ArgumentNullException">Thrown if the <paramref name="device"/> argument is null.</exception>
public DeviceEventArgs(SsdpDevice device)
{
- if (device == null) throw new ArgumentNullException(nameof(device));
+ if (device == null)
+ {
+ throw new ArgumentNullException(nameof(device));
+ }
_Device = device;
}