Browse Source

make OperateResult._errors readonly (#869)

master
Weihan Li 3 years ago
committed by GitHub
parent
commit
12c3654bfd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/DotNetCore.CAP/OperateResult.cs

+ 2
- 2
src/DotNetCore.CAP/OperateResult.cs View File

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


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


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

Loading…
Cancel
Save