Skip to content

Commit

Permalink
[C#] Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-goel committed Oct 4, 2023
1 parent aef7289 commit d752c52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/PChecker/CheckerCore/Coverage/ActivityCoverageReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,9 +356,10 @@ private static string GetStateId(string machineName, string stateName) =>

private static string GetSanitizedName(string name)
{
if (name.StartsWith("PImplementation."))
var i = name.LastIndexOf(".");
if (i > 0)
{
return name.Substring("PImplementation.".Length);
return name.Substring(i + 1);
}

return name;
Expand Down

0 comments on commit d752c52

Please sign in to comment.