Remove weird cast

This commit is contained in:
Dan Balasescu
2022-10-28 18:54:34 +09:00
parent ab78cde2d4
commit d3173ab1bd

View File

@ -47,7 +47,7 @@ namespace osu.Game.Online.Notifications.WebSocket
await base.StartChatAsync(); await base.StartChatAsync();
} }
private void runReadLoop(CancellationToken cancellationToken) => Task.Run((Func<Task>)(async () => private void runReadLoop(CancellationToken cancellationToken) => Task.Run(async () =>
{ {
byte[] buffer = new byte[1024]; byte[] buffer = new byte[1024];
StringBuilder messageResult = new StringBuilder(); StringBuilder messageResult = new StringBuilder();
@ -94,7 +94,7 @@ namespace osu.Game.Online.Notifications.WebSocket
return; return;
} }
} }
}), cancellationToken); }, cancellationToken);
private async Task closeAsync() private async Task closeAsync()
{ {