We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20ba0c2 + c7fa87f commit 4869a2aCopy full SHA for 4869a2a
src/Cli/Microsoft.DotNet.Cli.Utils/Command.cs
@@ -41,7 +41,7 @@ public CommandResult Execute(Action<Process>? processStarted)
41
42
_process.EnableRaisingEvents = true;
43
44
- Stopwatch sw = null;
+ Stopwatch? sw = null;
45
if (CommandLoggingContext.IsVerbose)
46
{
47
sw = Stopwatch.StartNew();
@@ -78,7 +78,7 @@ public CommandResult Execute(Action<Process>? processStarted)
78
LocalizableStrings.ProcessExitedWithCode,
79
FormatProcessInfo(_process.StartInfo),
80
exitCode,
81
- sw.ElapsedMilliseconds);
+ sw?.ElapsedMilliseconds);
82
if (exitCode == 0)
83
84
Reporter.Verbose.WriteLine(message.Green());
0 commit comments