Skip to content

Commit 532b68c

Browse files
committed
fix: Remove a CA1062 in generated code
1 parent 07ea961 commit 532b68c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Atc.Rest.ApiGenerator.Framework.Minimal/ContentGenerators/ContentGeneratorServerWebApplicationExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public string Generate()
3939
sb.AppendLine(8, "this WebApplication app,");
4040
sb.AppendLine(8, "string applicationName)");
4141
sb.AppendLine(4, "{");
42+
sb.AppendLine(8, "ArgumentNullException.ThrowIfNull(app);");
43+
sb.AppendLine();
4244
sb.AppendLine(8, "if (!app.Environment.IsDevelopment())");
4345
sb.AppendLine(8, "{");
4446
sb.AppendLine(12, "return app;");

0 commit comments

Comments
 (0)