Enforce expression body for typical simple ones.

This commit is contained in:
Huo Yaoyuan
2019-11-12 18:26:42 +08:00
parent 8a1b70513c
commit ca52d09e81
4 changed files with 27 additions and 33 deletions

View File

@ -50,17 +50,14 @@ namespace osu.Game.Online.API.Requests.Responses
[JsonProperty(@"user_votes")]
private List<long> userVotes
{
set
set => value.ForEach(v =>
{
value.ForEach(v =>
Comments.ForEach(c =>
{
Comments.ForEach(c =>
{
if (v == c.Id)
c.IsVoted = true;
});
if (v == c.Id)
c.IsVoted = true;
});
}
});
}
private List<User> users;