More target-typed new and redundant paranthesis cleanup

This commit is contained in:
Kwoth
2021-12-20 00:33:11 +01:00
parent 345a9e9524
commit 1b2017024c
152 changed files with 573 additions and 580 deletions

View File

@@ -18,7 +18,7 @@ public class CmdCdService : ILateBlocker, INService
public CmdCdService(Bot bot)
{
CommandCooldowns = new ConcurrentDictionary<ulong, ConcurrentHashSet<CommandCooldown>>(
CommandCooldowns = new(
bot.AllGuildConfigs.ToDictionary(k => k.GuildId,
v => new ConcurrentHashSet<CommandCooldown>(v.CommandCooldowns)));
}
@@ -38,7 +38,7 @@ public class CmdCdService : ILateBlocker, INService
return Task.FromResult(true);
}
activeCdsForGuild.Add(new ActiveCooldown()
activeCdsForGuild.Add(new()
{
UserId = user.Id,
Command = commandName,