Skip to content

Commit c2cdbe7

Browse files
author
Cédric Belin
committed
Code formatting
1 parent d64540e commit c2cdbe7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/report.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ public static Report Parse(string coverage) {
8080
});
8181
break;
8282

83-
case Token.BranchesFound: if (sourceFile.Branches is not null) sourceFile.Branches.Found = int.Parse(data[0]); break;
84-
case Token.BranchesHit: if (sourceFile.Branches is not null) sourceFile.Branches.Hit = int.Parse(data[0]); break;
85-
case Token.FunctionsFound: if (sourceFile.Functions is not null) sourceFile.Functions.Found = int.Parse(data[0]); break;
86-
case Token.FunctionsHit: if (sourceFile.Functions is not null) sourceFile.Functions.Hit = int.Parse(data[0]); break;
87-
case Token.LinesFound: if (sourceFile.Lines is not null) sourceFile.Lines.Found = int.Parse(data[0]); break;
88-
case Token.LinesHit: if (sourceFile.Lines is not null) sourceFile.Lines.Hit = int.Parse(data[0]); break;
83+
case Token.BranchesFound when sourceFile.Branches is not null: sourceFile.Branches.Found = int.Parse(data[0]); break;
84+
case Token.BranchesHit when sourceFile.Branches is not null: sourceFile.Branches.Hit = int.Parse(data[0]); break;
85+
case Token.FunctionsFound when sourceFile.Functions is not null: sourceFile.Functions.Found = int.Parse(data[0]); break;
86+
case Token.FunctionsHit when sourceFile.Functions is not null: sourceFile.Functions.Hit = int.Parse(data[0]); break;
87+
case Token.LinesFound when sourceFile.Lines is not null: sourceFile.Lines.Found = int.Parse(data[0]); break;
88+
case Token.LinesHit when sourceFile.Lines is not null: sourceFile.Lines.Hit = int.Parse(data[0]); break;
8989
default: throw new FormatException($"Unknown token at line {offset}.");
9090
}
9191
}

0 commit comments

Comments
 (0)