Updated editorconfig to (mostly?) require braces around if/else statements, and applied the new formatting rules

This commit is contained in:
Kwoth
2022-02-02 01:44:45 +01:00
parent b22cd5a81e
commit ffa2c3f119
202 changed files with 2108 additions and 920 deletions

View File

@@ -9,7 +9,7 @@ public partial class Utility
public partial class UnitConverterCommands : NadekoSubmodule<ConverterService>
{
[Cmd]
public async partial Task ConvertList()
public async partial Task ConvertList()
{
var units = _service.Units;
@@ -17,8 +17,10 @@ public partial class Utility
foreach (var g in units.GroupBy(x => x.UnitType))
{
embed.AddField(g.Key.ToTitleCase(),
string.Join(", ", g.Select(x => x.Triggers.FirstOrDefault()).OrderBy(x => x)));
}
await ctx.Channel.EmbedAsync(embed);
}