From a11076efdfbe57f17430bdc354bcccee5b58c183 Mon Sep 17 00:00:00 2001 From: Omotola Akeredolu Date: Thu, 28 Sep 2023 13:41:43 -0700 Subject: [PATCH] variable rename --- .../Services/ScanExecutionService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.ComponentDetection.Orchestrator/Services/ScanExecutionService.cs b/src/Microsoft.ComponentDetection.Orchestrator/Services/ScanExecutionService.cs index e03f7c8d0..94ef6f64b 100644 --- a/src/Microsoft.ComponentDetection.Orchestrator/Services/ScanExecutionService.cs +++ b/src/Microsoft.ComponentDetection.Orchestrator/Services/ScanExecutionService.cs @@ -39,15 +39,15 @@ public async Task ExecuteScanAsync(ScanSettings settings) var detectorRestrictions = this.GetDetectorRestrictions(settings); var detectors = this.detectors.ToList(); - var restrictedDetectors = this.detectorRestrictionService.ApplyRestrictions(detectorRestrictions, detectors).ToImmutableList(); - detectorRestrictions.DisabledDetectors = detectors.Except(restrictedDetectors).ToList(); + var detectorsWithAppliedRestrictions = this.detectorRestrictionService.ApplyRestrictions(detectorRestrictions, detectors).ToImmutableList(); + detectorRestrictions.DisabledDetectors = detectors.Except(detectorsWithAppliedRestrictions).ToList(); this.logger.LogDebug("Finished applying restrictions to detectors."); - var processingResult = await this.detectorProcessingService.ProcessDetectorsAsync(settings, restrictedDetectors, detectorRestrictions); + var processingResult = await this.detectorProcessingService.ProcessDetectorsAsync(settings, detectorsWithAppliedRestrictions, detectorRestrictions); var scanResult = this.graphTranslationService.GenerateScanResultFromProcessingResult(processingResult, settings); - scanResult.DetectorsInScan = restrictedDetectors.Select(ConvertToContract).ToList(); + scanResult.DetectorsInScan = detectorsWithAppliedRestrictions.Select(ConvertToContract).ToList(); scanResult.DetectorsNotInScan = detectorRestrictions.DisabledDetectors.Select(ConvertToContract).ToList(); scanResult.ResultCode = processingResult.ResultCode;