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;