mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
Applied codestyle to all .cs files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user