mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 09:42:54 +08:00
Move exception handling below all the cases
This commit is contained in:
parent
8849f25069
commit
55a0586b13
@ -22,9 +22,6 @@ namespace osu.Game.Overlays.Home.Friends
|
||||
{
|
||||
switch (Value.Status)
|
||||
{
|
||||
default:
|
||||
throw new ArgumentException($@"{Value.Status} status does not provide a colour in {nameof(GetBarColour)}.");
|
||||
|
||||
case FriendsOnlineStatus.All:
|
||||
return Color4.White;
|
||||
|
||||
@ -33,6 +30,9 @@ namespace osu.Game.Overlays.Home.Friends
|
||||
|
||||
case FriendsOnlineStatus.Offline:
|
||||
return Color4.Black;
|
||||
|
||||
default:
|
||||
throw new ArgumentException($@"{Value.Status} status does not provide a colour in {nameof(GetBarColour)}.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user