mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Extract removal to method
This commit is contained in:
@ -58,9 +58,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
|
||||
foreach (var incoming in result)
|
||||
{
|
||||
// Copy the room to itself to populate some members (such as status and playlist expiry).
|
||||
incoming.CopyFrom(incoming);
|
||||
|
||||
incoming.RemoveExpiredPlaylistItems();
|
||||
RoomManager.AddOrUpdateRoom(incoming);
|
||||
}
|
||||
|
||||
|
@ -39,9 +39,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
|
||||
|
||||
pollReq.Success += result =>
|
||||
{
|
||||
// Copy the room to itself to populate some members (such as status and playlist expiry).
|
||||
result.CopyFrom(result);
|
||||
|
||||
result.RemoveExpiredPlaylistItems();
|
||||
RoomManager.AddOrUpdateRoom(result);
|
||||
tcs.SetResult(true);
|
||||
};
|
||||
|
Reference in New Issue
Block a user