Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ErrorOr.cs | removal of the second null check for errors | pri…
…vate ErrorOr(List<Error> errors) private ErrorOr(List<Error> errors) { if (errors is null) { throw new ArgumentNullException(nameof(errors)); } if (errors is null || errors.Count == 0) { throw new ArgumentException("Cannot create an ErrorOr<TValue> from an empty collection of errors. Provide at least one error.", nameof(errors)); } _errors = errors; } This check is unnecessary due to the one performed just above.
- Loading branch information