aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Attributes/HttpSubscribeAttribute.cs
diff options
context:
space:
mode:
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));
}
}