diff --git a/src/ErrorOr/ErrorOr.cs b/src/ErrorOr/ErrorOr.cs index b958157..b782533 100644 --- a/src/ErrorOr/ErrorOr.cs +++ b/src/ErrorOr/ErrorOr.cs @@ -32,7 +32,7 @@ private ErrorOr(List errors) throw new ArgumentNullException(nameof(errors)); } - if (errors is null || errors.Count == 0) + if (errors.Count == 0) { throw new ArgumentException("Cannot create an ErrorOr from an empty collection of errors. Provide at least one error.", nameof(errors)); }