CR feedback part 1

This commit is contained in:
Dan Quirk 2016-04-04 16:18:47 -07:00
parent e077b60382
commit 3e4edf1688
2 changed files with 15 additions and 10 deletions

View file

@ -117,12 +117,10 @@ namespace Microsoft.DotNet.Cli
};
int exitCode;
var arguments = string.Empty;
Func<string[], int> builtIn;
if (builtIns.TryGetValue(command, out builtIn))
{
exitCode = builtIn(appArgs.ToArray());
arguments = string.Join(" ", appArgs);
}
else
{
@ -130,7 +128,6 @@ namespace Microsoft.DotNet.Cli
.ForwardStdErr()
.ForwardStdOut()
.Execute();
arguments = result.StartInfo.Arguments;
exitCode = result.ExitCode;
}