Skip to content

Commit

Permalink
Remove unused variable (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthalman authored Apr 28, 2023
1 parent 3c84a0e commit c26b70a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ internal static void AppendOrModifyChild(

internal static void RemoveChildNode(XPathNavigator? parentNavigator, string nodeXPath, string childName)
{
if (parentNavigator?.SelectSingleNode(nodeXPath) is { } childNodeNavigator)
if (parentNavigator?.SelectSingleNode(nodeXPath) is { })
{
parentNavigator.MoveToChild(childName, string.Empty);
parentNavigator.DeleteSelf();
Expand Down

0 comments on commit c26b70a

Please sign in to comment.