瀏覽代碼

make OperateResult._errors readonly (#869)

master
Weihan Li 3 年之前
committed by GitHub
父節點
當前提交
12c3654bfd
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/DotNetCore.CAP/OperateResult.cs

+ 2
- 2
src/DotNetCore.CAP/OperateResult.cs 查看文件

@@ -15,7 +15,7 @@ namespace DotNetCore.CAP
// ReSharper disable once InconsistentNaming

// ReSharper disable once FieldCanBeMadeReadOnly.Local
private List<OperateError> _errors = new List<OperateError>();
private readonly List<OperateError> _errors = new List<OperateError>();

/// <summary>
/// Flag indicating whether if the operation succeeded or not.
@@ -93,4 +93,4 @@ namespace DotNetCore.CAP
/// </summary>
public string Description { get; set; }
}
}
}

Loading…
取消
儲存