Skip to content

Commit 8f03ca7

Browse files
committed
update
1 parent a6c03c4 commit 8f03ca7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

FastWebApi/FormHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class FormItem
4545
/// <summary>
4646
/// 保存表单域的字典
4747
/// </summary>
48-
private IDictionary<string, FormItem> _dictionary = new Dictionary<string, FormItem>();
48+
private readonly IDictionary<string, FormItem> _dictionary = new Dictionary<string, FormItem>();
4949

5050

5151
/// <summary>

FastWebApi/HttpSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public object this[string key]
165165
{
166166
get
167167
{
168-
if (string.IsNullOrEmpty(key)|| _sessionItem==null) return null;
168+
if (string.IsNullOrEmpty(key) || _sessionItem == null) return null;
169169
var u_dict = _sessionItem.SessionValues;
170170
_sessionItem.LastReadWriteTime = DateTime.Now.Ticks / 10000 / 1000;
171171
if (!u_dict.TryGetValue(key, out object ov)) return null;

0 commit comments

Comments
 (0)