mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 23:12:55 +08:00
Code quality
This commit is contained in:
parent
997fc716e8
commit
f94afa5f8c
@ -56,7 +56,7 @@ namespace osu.Game.Overlays
|
|||||||
private const float side_bar_width = 190;
|
private const float side_bar_width = 190;
|
||||||
private const float chat_bar_height = 60;
|
private const float chat_bar_height = 60;
|
||||||
|
|
||||||
private readonly ChannelType[] excluded_channel_types = new[]
|
private readonly ChannelType[] excludedChannelTypes =
|
||||||
{
|
{
|
||||||
ChannelType.Multiplayer,
|
ChannelType.Multiplayer,
|
||||||
ChannelType.Spectator,
|
ChannelType.Spectator,
|
||||||
@ -409,6 +409,6 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerable<Channel> filterToChatChannels(IEnumerable channels)
|
private IEnumerable<Channel> filterToChatChannels(IEnumerable channels)
|
||||||
=> channels.Cast<Channel>().Where(c => !excluded_channel_types.Contains(c.Type));
|
=> channels.Cast<Channel>().Where(c => !excludedChannelTypes.Contains(c.Type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user