aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2022-08-12 20:37:31 +0200
committerBond_009 <bond.009@outlook.com>2022-08-18 13:56:23 +0200
commit5036afd69127cc6f6b0801329b2b04f21aee71f5 (patch)
tree24ca3d5f4dc15298e686c6c4944d9d04f9f40cc7 /Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
parent63d943aab92a4b5f69e625a269eb830bcbfb4d22 (diff)
Minor cleanup
Diffstat (limited to 'Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs')
-rw-r--r--Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs b/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
index af8727552..7ac089a34 100644
--- a/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
+++ b/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
@@ -25,11 +25,6 @@ namespace Jellyfin.Api.Attributes
/// <param name="template">The route template. May not be null.</param>
public HttpSubscribeAttribute(string template)
: base(_supportedMethods, template)
- {
- if (template == null)
- {
- throw new ArgumentNullException(nameof(template));
- }
- }
+ => ArgumentNullException.ThrowIfNull(template, nameof(template));
}
}