Respond to PR feedback.

This commit is contained in:
Eric Erhardt 2017-02-10 11:32:22 -06:00
parent 72af77de1b
commit 31ff72e62d
2 changed files with 5 additions and 5 deletions

View file

@ -29,9 +29,9 @@ namespace Microsoft.DotNet.Scripts
buildInfos.Add(BuildInfo.Get("CoreSetup", s_config.CoreSetupVersionUrl, fetchLatestReleaseFile: false));
IEnumerable<IDependencyUpdater> updaters = GetUpdaters();
var dependencyBuildInfos = buildInfos.Select(i =>
var dependencyBuildInfos = buildInfos.Select(buildInfo =>
new DependencyBuildInfo(
i,
buildInfo,
upgradeStableVersions: true,
disabledPackages: Enumerable.Empty<string>()));
DependencyUpdateResults updateResults = DependencyUpdateUtils.Update(updaters, dependencyBuildInfos);
@ -46,7 +46,7 @@ namespace Microsoft.DotNet.Scripts
string suggestedMessage = updateResults.GetSuggestedCommitMessage();
string body = string.Empty;
if (s_config.GitHubPullRequestNotifications != null)
if (s_config.GitHubPullRequestNotifications.Any())
{
body += PullRequestCreator.NotificationString(s_config.GitHubPullRequestNotifications);
}