From 12c3654bfd86840808298ad5344af2470dbcd641 Mon Sep 17 00:00:00 2001 From: Weihan Li Date: Fri, 14 May 2021 09:12:00 +0800 Subject: [PATCH] make OperateResult._errors readonly (#869) --- src/DotNetCore.CAP/OperateResult.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DotNetCore.CAP/OperateResult.cs b/src/DotNetCore.CAP/OperateResult.cs index 68f85be..de3adc3 100644 --- a/src/DotNetCore.CAP/OperateResult.cs +++ b/src/DotNetCore.CAP/OperateResult.cs @@ -15,7 +15,7 @@ namespace DotNetCore.CAP // ReSharper disable once InconsistentNaming // ReSharper disable once FieldCanBeMadeReadOnly.Local - private List _errors = new List(); + private readonly List _errors = new List(); /// /// Flag indicating whether if the operation succeeded or not. @@ -93,4 +93,4 @@ namespace DotNetCore.CAP /// public string Description { get; set; } } -} \ No newline at end of file +}