Use expression body for property get/set where possible

This commit is contained in:
Dean Herbert
2019-02-28 13:58:19 +09:00
parent 94a389319d
commit 42be7857d1
130 changed files with 297 additions and 403 deletions

View File

@ -35,7 +35,7 @@ namespace osu.Game.Users
private Country country;
public Country Country
{
get { return country; }
get => country;
set
{
if (value == country)

View File

@ -23,7 +23,7 @@ namespace osu.Game.Users
public User User
{
get { return user; }
get => user;
set
{
if (user?.Id == value?.Id)

View File

@ -34,8 +34,8 @@ namespace osu.Game.Users
[JsonProperty(@"cover_url")]
public string CoverUrl
{
get { return Cover?.Url; }
set { Cover = new UserCover { Url = value }; }
get => Cover?.Url;
set => Cover = new UserCover { Url = value };
}
[JsonProperty(@"cover")]