浏览代码

make OperateResult._errors readonly (#869)

master
Weihan Li 3 年前
committed by GitHub
父节点
当前提交
12c3654bfd
找不到此签名对应的密钥 GPG 密钥 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; }
}
}
}

正在加载...
取消
保存