Skip to content

Commit c26b70a

Browse files
authored
Remove unused variable (#4425)
1 parent 3c84a0e commit c26b70a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ internal static void AppendOrModifyChild(
9393

9494
internal static void RemoveChildNode(XPathNavigator? parentNavigator, string nodeXPath, string childName)
9595
{
96-
if (parentNavigator?.SelectSingleNode(nodeXPath) is { } childNodeNavigator)
96+
if (parentNavigator?.SelectSingleNode(nodeXPath) is { })
9797
{
9898
parentNavigator.MoveToChild(childName, string.Empty);
9999
parentNavigator.DeleteSelf();

0 commit comments

Comments
 (0)