We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c84a0e commit c26b70aCopy full SHA for c26b70a
1 file changed
src/Microsoft.TestPlatform.Utilities/XmlUtilities.cs
@@ -93,7 +93,7 @@ internal static void AppendOrModifyChild(
93
94
internal static void RemoveChildNode(XPathNavigator? parentNavigator, string nodeXPath, string childName)
95
{
96
- if (parentNavigator?.SelectSingleNode(nodeXPath) is { } childNodeNavigator)
+ if (parentNavigator?.SelectSingleNode(nodeXPath) is { })
97
98
parentNavigator.MoveToChild(childName, string.Empty);
99
parentNavigator.DeleteSelf();
0 commit comments