From 6058232e626182f64584b753ad901d7bb385f506 Mon Sep 17 00:00:00 2001 From: "Simon G." Date: Wed, 10 Dec 2025 13:34:52 +0100 Subject: [PATCH] - remove unneeded brackets --- LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs b/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs index b93313e..369fd4f 100644 --- a/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs +++ b/LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs @@ -133,9 +133,7 @@ public class FactoryGenerator : IIncrementalGenerator foreach (ITypeSymbol type in GetDistinctTypes(types, false)) { stringBuilder.AppendLine($"{INDENT}{INDENT}if (typeof(TFactory) == typeof({GetTypeText(type, false)}))"); - stringBuilder.AppendLine($"{INDENT}{INDENT}{{"); stringBuilder.AppendLine($"{INDENT}{INDENT}{INDENT}return (TFactory) (object) new Generated{GetTypeText(type, false)}(container);"); - stringBuilder.AppendLine($"{INDENT}{INDENT}}}"); stringBuilder.AppendLine(); }