Skip to content

Commit

Permalink
fix: S1066
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkallesen committed Jul 1, 2024
1 parent 034cbbb commit f9d666f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,10 @@ private static async Task AssertGenerateForClientCSharp(
sbCommands.Append(scenarioPath.Name);
sbCommands.Append(" --outputPath ");
sbCommands.Append(Path.Combine(outputPath.FullName, "src"));
if (!useCustomErrorResponseModel)
if (!useCustomErrorResponseModel &&
useProblemDetailsAsDefaultResponseBody)
{
if (useProblemDetailsAsDefaultResponseBody)
{
sbCommands.Append(" --useProblemDetailsAsDefaultResponseBody");
}
sbCommands.Append(" --useProblemDetailsAsDefaultResponseBody");
}

if (optionsFile is not null)
Expand Down

0 comments on commit f9d666f

Please sign in to comment.