Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable nullable on TP utilities #3700

Merged
merged 3 commits into from
Jun 2, 2022

Conversation

Evangelink
Copy link
Member

@Evangelink Evangelink commented May 31, 2022

Contributes to AB#1549371

@@ -584,7 +584,7 @@ private static void ValidateRunConfiguration(XPathNavigator runSettingsNavigator
XmlUtilities.AppendOrModifyChild(xmlDocument, TargetFrameworkNodePath, TargetFrameworkNodeName, effectiveFramework.ToString());
}

public static bool TryGetPlatformXml(XPathNavigator runSettingsNavigator, out string platformXml)
public static bool TryGetPlatformXml(XPathNavigator runSettingsNavigator, out string? platformXml)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If platform is null we return true, that seems weird to me. Usually in TryXXX methods you return true when you have something valid.

@Evangelink Evangelink merged commit 9e19aca into microsoft:main Jun 2, 2022
@Evangelink Evangelink deleted the tp-utilities-nullable branch June 2, 2022 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants