diff options
author | Kenneth Hsu <kennethhsu@gmail.com> | 2019-10-19 20:56:21 +0300 |
---|---|---|
committer | Kenneth Hsu <kennethhsu@gmail.com> | 2019-10-19 23:59:22 +0300 |
commit | 2aa76881a51ce91762f7caabcc114434647532c2 (patch) | |
tree | 19f18239244918e0314b8282f7efa89c72acb2c6 /Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs | |
parent | 91505e62238a68f020d99bd9a7c1a2be8e3b25cf (diff) |
Mark fields that don't need to be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
Diffstat (limited to 'Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs')
-rw-r--r-- | Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs index 83224913c..6f0b4a414 100644 --- a/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs +++ b/Duplicati/Library/Backend/AmazonCloudDrive/AmzCD.cs @@ -60,7 +60,7 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive private readonly TimeSpan m_delayTimeSpan;
private static readonly object m_waitUntilLock;
- private static Dictionary<string, DateTime> m_waitUntilAuthId;
+ private static readonly Dictionary<string, DateTime> m_waitUntilAuthId;
private static Dictionary<string, DateTime> m_waitUntilRemotename;
static AmzCD()
@@ -310,7 +310,7 @@ namespace Duplicati.Library.Backend.AmazonCloudDrive throw new FileMissingException();
}
- private static System.Text.RegularExpressions.Regex FILTERS_VALUE_ESCAPECHAR = new System.Text.RegularExpressions.Regex(@"[+\-&|!(){}\[\]^'""~*?:\\ ]", System.Text.RegularExpressions.RegexOptions.Compiled);
+ private static readonly System.Text.RegularExpressions.Regex FILTERS_VALUE_ESCAPECHAR = new System.Text.RegularExpressions.Regex(@"[+\-&|!(){}\[\]^'""~*?:\\ ]", System.Text.RegularExpressions.RegexOptions.Compiled);
public static string EscapeFiltersValue(string value)
{
|