From ef2814b0c1ec0be6001e4055931e39427586cb23 Mon Sep 17 00:00:00 2001 From: Tim Pohlmann Date: Tue, 5 Nov 2024 11:23:56 +0100 Subject: [PATCH] remove unneeded variable --- src/SonarScanner.MSBuild.PreProcessor/ProcessedArgs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SonarScanner.MSBuild.PreProcessor/ProcessedArgs.cs b/src/SonarScanner.MSBuild.PreProcessor/ProcessedArgs.cs index 4653ba821..319ca864b 100644 --- a/src/SonarScanner.MSBuild.PreProcessor/ProcessedArgs.cs +++ b/src/SonarScanner.MSBuild.PreProcessor/ProcessedArgs.cs @@ -260,7 +260,7 @@ private string GetOperatingSystem(IAnalysisPropertyProvider properties) => private bool CheckOrganizationValidity(ILogger logger) { - if (Organization is null && this.globalFileProperties.TryGetValue(SonarProperties.Organization, out var filePropertiesOrganization)) + if (Organization is null && globalFileProperties.TryGetValue(SonarProperties.Organization, out _)) { logger.LogError(Resources.ERROR_Organization_Provided_In_SonarQubeAnalysis_file); return false;