Skip to content

Commit

Permalink
removing redundant loop (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatKatKateryna authored Nov 27, 2024
1 parent c5e14e7 commit 329315f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ public SelectionInfo GetSelection()
selectedMembers.AddRange(mapView.GetSelectedStandaloneTables());

List<MapMember> allNestedMembers = new();
foreach (MapMember member in selectedMembers)
{
var layerMapMembers = _mapMemberUtils.UnpackMapLayers(selectedMembers);
allNestedMembers.AddRange(layerMapMembers);
}
var layerMapMembers = _mapMemberUtils.UnpackMapLayers(selectedMembers);
allNestedMembers.AddRange(layerMapMembers);

List<string> objectTypes = allNestedMembers
.Select(o => o.GetType().ToString().Split(".").Last())
Expand Down

0 comments on commit 329315f

Please sign in to comment.