mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 02:08:27 -04:00
Updated editorconfig to (mostly?) require braces around if/else statements, and applied the new formatting rules
This commit is contained in:
@@ -110,7 +110,12 @@ public sealed class TranslateService : ITranslateService, ILateExecutor, IReadyE
|
||||
|
||||
if (old is null)
|
||||
{
|
||||
ctx.AutoTranslateChannels.Add(new() { GuildId = guildId, ChannelId = channelId, AutoDelete = autoDelete });
|
||||
ctx.AutoTranslateChannels.Add(new()
|
||||
{
|
||||
GuildId = guildId,
|
||||
ChannelId = channelId,
|
||||
AutoDelete = autoDelete
|
||||
});
|
||||
|
||||
await ctx.SaveChangesAsync();
|
||||
|
||||
@@ -169,7 +174,12 @@ public sealed class TranslateService : ITranslateService, ILateExecutor, IReadyE
|
||||
|
||||
if (user is null)
|
||||
{
|
||||
ch.Users.Add(user = new() { Source = from, Target = to, UserId = userId });
|
||||
ch.Users.Add(user = new()
|
||||
{
|
||||
Source = from,
|
||||
Target = to,
|
||||
UserId = userId
|
||||
});
|
||||
|
||||
await ctx.SaveChangesAsync();
|
||||
|
||||
|
Reference in New Issue
Block a user