Skip to content

Commit 07c8f6c

Browse files
Copilotsteveisok
andcommitted
Add braces around if statements on lines 41-43
Co-authored-by: steveisok <471438+steveisok@users.noreply.github.com>
1 parent 1c97f11 commit 07c8f6c

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

src/Tools/dotnet-stack/ReportCommand.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,18 @@ private static async Task<int> Report(CancellationToken ct, TextWriter stdOutput
3838
{
3939
// Validate that only one of processId, name, or diagnosticPort is specified
4040
int optionCount = 0;
41-
if (processId != 0) optionCount++;
42-
if (!string.IsNullOrEmpty(name)) optionCount++;
43-
if (!string.IsNullOrEmpty(diagnosticPort)) optionCount++;
41+
if (processId != 0)
42+
{
43+
optionCount++;
44+
}
45+
if (!string.IsNullOrEmpty(name))
46+
{
47+
optionCount++;
48+
}
49+
if (!string.IsNullOrEmpty(diagnosticPort))
50+
{
51+
optionCount++;
52+
}
4453

4554
if (optionCount == 0)
4655
{

0 commit comments

Comments
 (0)