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

Commit

Permalink
Even simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailArkhipov committed Oct 5, 2018
1 parent ca6ee8a commit 96ae479
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Analysis/Engine/Impl/Values/Protocols.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,17 +410,12 @@ private void AppendParameterString(StringBuilder sb, AnalysisValue[] sets) {
return;
}

if (sets.Length == 1) {
sb.Append(sets[0] is IHasQualifiedName qn ? qn.FullyQualifiedName : sets[0].ShortDescription);
return;
}

sb.Append('[');
sb.AppendIf(sets.Length > 1, "[");

This comment has been minimized.

Copy link
@AlexanderSher

AlexanderSher Oct 5, 2018

Contributor

👍

for (var i = 0; i < sets.Length; i++) {
sb.AppendIf(i > 0, ", ");
sb.Append(sets[i] is IHasQualifiedName qn ? qn.FullyQualifiedName : sets[i].ShortDescription);
}
sb.Append(']');
sb.AppendIf(sets.Length > 1, "]");
}

protected override void EnsureMembers(IDictionary<string, IAnalysisSet> members) {
Expand Down

0 comments on commit 96ae479

Please sign in to comment.