1
0
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:
Andrei Zavatski 2020-03-04 23:03:02 +03:00
parent 8849f25069
commit 55a0586b13

View File

@ -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)}.");
}
}
}