1
0
mirror of https://github.com/bitwarden/server synced 2025-12-10 13:23:27 +00:00

Swapping [] for Array.Empty<string> (#5092)

This commit is contained in:
Jared McCannon
2024-11-27 06:47:18 -06:00
committed by GitHub
parent 674bd1e495
commit c8930d44f2

View File

@@ -8,5 +8,5 @@ public class CommandResult(IEnumerable<string> errors)
public bool HasErrors => ErrorMessages.Count > 0; public bool HasErrors => ErrorMessages.Count > 0;
public List<string> ErrorMessages { get; } = errors.ToList(); public List<string> ErrorMessages { get; } = errors.ToList();
public CommandResult() : this([]) { } public CommandResult() : this(Array.Empty<string>()) { }
} }