Fixed around 140 wrong namings and other refactorings which were marked as warnings

This commit is contained in:
Kwoth
2022-01-08 11:51:41 +01:00
parent a6330119e8
commit 2ce3262d59
109 changed files with 698 additions and 760 deletions

View File

@@ -94,7 +94,7 @@ public class ProtectionService : INService
private Task _client_LeftGuild(SocketGuild guild)
{
var _ = Task.Run(async () =>
_= Task.Run(async () =>
{
TryStopAntiRaid(guild.Id);
TryStopAntiSpam(guild.Id);
@@ -202,7 +202,7 @@ public class ProtectionService : INService
if (msg.Channel is not ITextChannel channel)
return Task.CompletedTask;
var _ = Task.Run(async () =>
_= Task.Run(async () =>
{
try
{

View File

@@ -38,15 +38,15 @@ public class AntiAltStats
=> _setting.MinAge;
public int Counter
=> _counter;
=> counter;
private readonly AntiAltSetting _setting;
private int _counter;
private int counter;
public AntiAltStats(AntiAltSetting setting)
=> _setting = setting;
public void Increment()
=> Interlocked.Increment(ref _counter);
=> Interlocked.Increment(ref counter);
}