From 3f387909e7e1613b4cfe64fedaa2497d338b68ba Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Tue, 2 Jul 2024 00:41:01 +0200 Subject: [PATCH] fix: IDE0059 --- .../ScenarioIntegrationTestBase.cs | 2 +- test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenarioIntegrationTestBase.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenarioIntegrationTestBase.cs index 4812fa6b..180eb326 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenarioIntegrationTestBase.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenarioIntegrationTestBase.cs @@ -76,7 +76,7 @@ public static DirectoryInfo GetOutputPath( ArgumentNullException.ThrowIfNull(workingPath); ArgumentNullException.ThrowIfNull(scenario); - var suffix = string.Empty; + string suffix; if (useCustomErrorResponseModel) { suffix = "WithCustomErrorResponse"; diff --git a/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs b/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs index 27e62044..99adbdaa 100644 --- a/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs +++ b/test/Atc.Rest.ApiGenerator.CLI.Tests/ScenariosTests.cs @@ -404,7 +404,7 @@ private static async Task AssertVerifyCsFilesForClientCSharp( bool useProblemDetailsAsDefaultResponseBody, bool useCustomErrorResponseModel) { - var suffix = string.Empty; + string suffix; if (useCustomErrorResponseModel) { suffix = "WCEM";