Skip to content

Commit 76fe148

Browse files
committed
code_style: use static for lambda
1 parent b360429 commit 76fe148

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Models/User.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public User(string data)
2525

2626
public static User FindOrAdd(string data)
2727
{
28-
return _caches.GetOrAdd(data, key => new User(key));
28+
return _caches.GetOrAdd(data, static key => new User(key));
2929
}
3030

3131
public override string ToString()

0 commit comments

Comments
 (0)