From 8c6fcd2ce62b77a4acada9fe7fe844b382040ee2 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 1 Jan 2022 07:14:22 +0100 Subject: [PATCH] Small formatting fix for the source generator output files --- src/NadekoBot.Generators/Command/CommandAttributesGenerator.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NadekoBot.Generators/Command/CommandAttributesGenerator.cs b/src/NadekoBot.Generators/Command/CommandAttributesGenerator.cs index 97a6d74ae..f3ad7b309 100644 --- a/src/NadekoBot.Generators/Command/CommandAttributesGenerator.cs +++ b/src/NadekoBot.Generators/Command/CommandAttributesGenerator.cs @@ -142,13 +142,12 @@ public class CmdAttribute : System.Attribute foreach (var className in model.ClassHierarchy) { tw.WriteLine($"public partial class {className}"); - tw.Write("{"); + tw.WriteLine("{"); tw.Indent ++; } foreach (var method in model.Methods) { - tw.WriteLine(); tw.WriteLine("[NadekoCommand]"); tw.WriteLine("[Aliases]"); tw.WriteLine($"public partial {method.ReturnType} {method.MethodName}({string.Join(", ", method.Params)});");