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

@@ -32,7 +32,7 @@ public class CommandMapService : IInputTransformer, INService
.Where(x => guildIds.Contains(x.GuildId))
.ToList();
AliasMaps = new ConcurrentDictionary<ulong, ConcurrentDictionary<string, string>>(configs
AliasMaps = new(configs
.ToDictionary(
x => x.GuildId,
x => new ConcurrentDictionary<string, string>(x.CommandAliases
@@ -88,7 +88,7 @@ public class CommandMapService : IInputTransformer, INService
var _ = Task.Run(async () =>
{
await Task.Delay(1500).ConfigureAwait(false);
await toDelete.DeleteAsync(new RequestOptions()
await toDelete.DeleteAsync(new()
{
RetryMode = RetryMode.AlwaysRetry
}).ConfigureAwait(false);