Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Nov 11, 2022
1 parent 10f2116 commit 1d04da6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ private static string GetInstrumentName(string sourceName, string eventName)
return string.Concat(Prefix, ".", eventName);
}

while (maxEventSourceLength > 0 && (sourceName[maxEventSourceLength - 1] == '.' || sourceName[maxEventSourceLength - 1] == '-'))
while (maxEventSourceLength > 0 && (sourceName[maxEventSourceLength - 1] == '.' || sourceName[maxEventSourceLength - 1] == '-'))
{
maxEventSourceLength --;
maxEventSourceLength--;
}

return string.Concat(Prefix, ".", sourceName.Substring(0, maxEventSourceLength), ".", eventName);
Expand Down

0 comments on commit 1d04da6

Please sign in to comment.