Applied codestyle to all .cs files

This commit is contained in:
Kwoth
2021-12-29 06:07:16 +01:00
parent 723447c7d4
commit 82000c97a4
543 changed files with 13221 additions and 14059 deletions

View File

@@ -5,11 +5,10 @@ namespace NadekoBot.Modules.Games.Common;
public class PollRunner
{
public event Func<IUserMessage, IGuildUser, Task> OnVoted;
public Poll Poll { get; }
private readonly DbService _db;
public event Func<IUserMessage, IGuildUser, Task> OnVoted;
private readonly SemaphoreSlim _locker = new(1, 1);
public PollRunner(DbService db, Poll poll)
@@ -40,11 +39,7 @@ public class PollRunner
if (usr is null)
return false;
voteObj = new()
{
UserId = msg.Author.Id,
VoteIndex = vote,
};
voteObj = new() { UserId = msg.Author.Id, VoteIndex = vote };
if (!Poll.Votes.Add(voteObj))
return false;
@@ -61,4 +56,4 @@ public class PollRunner
public void End()
=> OnVoted = null;
}
}