Skip to content

Commit

Permalink
Swapping [] for Array.Empty<string> (#5092)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccannon authored Nov 27, 2024
1 parent 674bd1e commit c8930d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Models/Commands/CommandResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ public CommandResult(string error) : this([error]) { }
public bool HasErrors => ErrorMessages.Count > 0;
public List<string> ErrorMessages { get; } = errors.ToList();

public CommandResult() : this([]) { }
public CommandResult() : this(Array.Empty<string>()) { }
}

0 comments on commit c8930d4

Please sign in to comment.