Removes the redundant null guards from the metadata value objects

This commit is contained in:
BinaryAlley committed 2026-09-26 17:54:22 +03:00
1 parent ef913f5c9e
commit 7534155f0e
4 files changed
+2 -42

No files matched your search

@@ -1,7 +1,6 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.Common.Primitives;
using Lumina.Domain.Common.ValueObjects.Metadata;
using System;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
@@ -72,7 +71,7 @@ public class VideoMetadata : BaseMetadata
: base(title, originalTitle, description, releaseInfo, genres, tags, language, originalLanguage)
{
DurationInSeconds = durationInSeconds;
Resolution = resolution ?? throw new ArgumentNullException(nameof(resolution));
Resolution = resolution;
FrameRate = frameRate;
VideoCodec = videoCodec;
AudioCodec = audioCodec;