Skip to content

Commit 8fcfe34

Browse files
SLVS-2519 Fix QG
1 parent 8d0f9a6 commit 8fcfe34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/IssueViz.Security/ReportView/ReportViewModel.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ internal class ReportViewModel : ServerViewModel
3838
private readonly IChangeDependencyRiskStatusHandler changeDependencyRiskStatusHandler;
3939
private readonly IMessageBox messageBox;
4040
private readonly ITelemetryManager telemetryManager;
41-
private readonly IThreadHandling threadHandling;
4241
private readonly IDependencyRisksStore dependencyRisksStore;
4342
private readonly ILocalHotspotsStore hotspotsStore;
4443
private readonly object @lock = new();
@@ -60,7 +59,6 @@ public ReportViewModel(
6059
this.changeDependencyRiskStatusHandler = changeDependencyRiskStatusHandler;
6160
this.messageBox = messageBox;
6261
this.telemetryManager = telemetryManager;
63-
this.threadHandling = threadHandling;
6462

6563
threadHandling.RunOnUIThread(() => { BindingOperations.EnableCollectionSynchronization(GroupViewModels, @lock); });
6664
hotspotsStore.IssuesChanged += HotspotsStore_IssuesChanged;
@@ -167,7 +165,7 @@ private void InitializeHotspots()
167165
RaisePropertyChanged(nameof(HasGroups));
168166
}
169167

170-
private ObservableCollection<IGroupViewModel> GetGroupViewModel(IEnumerable<IIssueViewModel> issueViewModels)
168+
private static ObservableCollection<IGroupViewModel> GetGroupViewModel(IEnumerable<IIssueViewModel> issueViewModels)
171169
{
172170
var issuesByFileGrouping = issueViewModels.GroupBy(vm => vm.FilePath);
173171
var groupViewModels = new ObservableCollection<IGroupViewModel>();

0 commit comments

Comments
 (0)