Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 5af1885

Browse files
author
MikhailArkhipov
committed
Simplify
1 parent fbfa0d5 commit 5af1885

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/Analysis/Engine/Impl/Values/IterableInfo.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,9 @@ public override IEnumerable<KeyValuePair<string, string>> GetRichDescription() {
293293
}
294294

295295
yield return new KeyValuePair<string, string>(WellKnownRichDescriptionKinds.Misc, "[");
296-
bool first = true;
297296
var i = 0;
298297
for (; i < Math.Min(indexTypes.Length, 6); i++) {
299-
if (first) {
300-
first = false;
301-
} else {
298+
if (i > 0) {
302299
yield return new KeyValuePair<string, string>(WellKnownRichDescriptionKinds.Comma, ", ");
303300
}
304301
foreach (var kv in indexTypes[i].Types.GetRichDescriptions(unionPrefix: "[", unionSuffix: "]")) {

0 commit comments

Comments
 (0)