- remove unneeded brackets

master
Simon G. 2 months ago
parent 864c91eb0f
commit 6058232e62
Signed by: SimonG
GPG Key ID: 0B82B964BA536523
  1. 2
      LightweightIocContainer.FactoryGenerator/FactoryGenerator.cs

@ -133,9 +133,7 @@ public class FactoryGenerator : IIncrementalGenerator
foreach (ITypeSymbol type in GetDistinctTypes(types, false)) foreach (ITypeSymbol type in GetDistinctTypes(types, false))
{ {
stringBuilder.AppendLine($"{INDENT}{INDENT}if (typeof(TFactory) == typeof({GetTypeText(type, 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}{INDENT}return (TFactory) (object) new Generated{GetTypeText(type, false)}(container);");
stringBuilder.AppendLine($"{INDENT}{INDENT}}}");
stringBuilder.AppendLine(); stringBuilder.AppendLine();
} }

Loading…
Cancel
Save