Skip to content

Commit

Permalink
Fix QG caused by "parameter being captured into the state of the encl…
Browse files Browse the repository at this point in the history
…osing type and its value is also used to initialize a field"
  • Loading branch information
gabriela-trutan-sonarsource committed Dec 17, 2024
1 parent 9a95f71 commit 042a858
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ internal bool RemoveConnectionViewModel(List<string> referencedBindingKeys, Conn

private bool DeleteBindings(List<string> connectionReferences)
{
var currentSolutionName = connectedModeBindingServices.SolutionInfoProvider.GetSolutionName();
var currentSolutionName = ConnectedModeBindingServices.SolutionInfoProvider.GetSolutionName();
foreach (var connectionReference in connectionReferences)
{
var bindingDeleted = currentSolutionName == connectionReference ? ConnectedModeBindingServices.BindingController.Unbind(connectionReference) : ConnectedModeBindingServices.SolutionBindingRepository.DeleteBinding(connectionReference);
Expand Down

0 comments on commit 042a858

Please sign in to comment.