This commit is contained in:
2023-01-04 15:45:03 +03:00
parent a2990fe1ef
commit 4649373a3d
2 changed files with 7 additions and 4 deletions

View File

@@ -4,6 +4,9 @@ namespace anbs_cp.Classes;
/// <summary>
/// Состояние действия
///
/// Обновлено 2023.01.104.1:
/// * Убрана ошибка с рекурсивным вызовом AddError
/// </summary>
public sealed class ActionState
{
@@ -80,7 +83,7 @@ public sealed class ActionState
/// <param name="error">Ошибка</param>
// ReSharper disable once MemberCanBeMadeStatic.Global
// ReSharper disable once FunctionRecursiveOnAllPaths
public void AddError (IActionError error) => AddError(error);
public void AddError (IActionError error) => Errors.Add(error);
/// <summary>
/// Добавляет ошибки в список