浏览代码

Usings must be distinct

Piotr Czajkowski 1 年之前
父节点
当前提交
0670faf068
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CodeGenerators/CodeGenerators/ClassRecordGenerator.cs

+ 1 - 1
CodeGenerators/CodeGenerators/ClassRecordGenerator.cs

@@ -22,7 +22,7 @@ public class ClassRecordGenerator : IGenerator
         var sb = new StringBuilder();
         if (Usings.Any())
         {
-            foreach (var usingItem in Usings)
+            foreach (var usingItem in Usings.Distinct())
                 sb.AppendLine($"using {usingItem};");
 
             sb.AppendLine();