aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/Group.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Data/Entities/Group.cs')
-rw-r--r--Jellyfin.Data/Entities/Group.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Jellyfin.Data/Entities/Group.cs b/Jellyfin.Data/Entities/Group.cs
index 14da0bb15..1be6f986a 100644
--- a/Jellyfin.Data/Entities/Group.cs
+++ b/Jellyfin.Data/Entities/Group.cs
@@ -18,10 +18,7 @@ namespace Jellyfin.Data.Entities
/// <param name="name">The name of the group.</param>
public Group(string name)
{
- if (string.IsNullOrEmpty(name))
- {
- throw new ArgumentNullException(nameof(name));
- }
+ ArgumentException.ThrowIfNullOrEmpty(name);
Name = name;
Id = Guid.NewGuid();