diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-08-12 20:37:31 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-08-18 13:56:23 +0200 |
| commit | 5036afd69127cc6f6b0801329b2b04f21aee71f5 (patch) | |
| tree | 24ca3d5f4dc15298e686c6c4944d9d04f9f40cc7 /Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs | |
| parent | 63d943aab92a4b5f69e625a269eb830bcbfb4d22 (diff) | |
Minor cleanup
Diffstat (limited to 'Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs')
| -rw-r--r-- | Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs b/Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs index 1c0b70e71..16b3d0816 100644 --- a/Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs +++ b/Jellyfin.Api/Attributes/HttpUnsubscribeAttribute.cs @@ -25,11 +25,6 @@ namespace Jellyfin.Api.Attributes /// <param name="template">The route template. May not be null.</param> public HttpUnsubscribeAttribute(string template) : base(_supportedMethods, template) - { - if (template == null) - { - throw new ArgumentNullException(nameof(template)); - } - } + => ArgumentNullException.ThrowIfNull(template, nameof(template)); } } |
