mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Updated editorconfig to (mostly?) require braces around if/else statements, and applied the new formatting rules
This commit is contained in:
@@ -175,14 +175,17 @@ public class TicTacToe
|
||||
{
|
||||
for (var i = 0; i < 3; i++)
|
||||
for (var j = 0; j < 3; j++)
|
||||
{
|
||||
if (_state[i, j] is null)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private Task Client_MessageReceived(SocketMessage msg)
|
||||
{
|
||||
_= Task.Run(async () =>
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
await _moveLock.WaitAsync();
|
||||
try
|
||||
@@ -266,7 +269,8 @@ public class TicTacToe
|
||||
|
||||
try
|
||||
{
|
||||
if (del2 is not null) await del2;
|
||||
if (del2 is not null)
|
||||
await del2;
|
||||
}
|
||||
catch { }
|
||||
});
|
||||
|
@@ -28,7 +28,7 @@ public partial class Games
|
||||
{
|
||||
if (_service.TicTacToeGames.TryGetValue(channel.Id, out var game))
|
||||
{
|
||||
_= Task.Run(async () =>
|
||||
_ = Task.Run(async () =>
|
||||
{
|
||||
await game.Start((IGuildUser)ctx.User);
|
||||
});
|
||||
|
Reference in New Issue
Block a user