Skip to content

Commit 06478cd

Browse files
committed
cleanup
1 parent a96c4e5 commit 06478cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

new-cli/GitVersion.Cli.Generator/CommandImplGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
3131
visitor.Visit(compilation.GlobalNamespace);
3232
var selectCommandTypes = visitor.GetResults();
3333

34-
return selectCommandTypes.Select(selectCommandType => MapToCommandInfo(selectCommandType, ct)).ToImmutableArray();
34+
return [.. selectCommandTypes.Select(selectCommandType => MapToCommandInfo(selectCommandType, ct))];
3535

3636
static bool SearchQuery(INamedTypeSymbol typeSymbol)
3737
{

new-cli/GitVersion.Cli.Generator/TypeVisitor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ internal class TypeVisitor(Func<INamedTypeSymbol, bool> searchQuery, Cancellatio
88
{
99
private readonly HashSet<INamedTypeSymbol> _exportedTypes = new(SymbolEqualityComparer.Default);
1010

11-
public ImmutableArray<INamedTypeSymbol> GetResults() => this._exportedTypes.ToImmutableArray();
11+
public ImmutableArray<INamedTypeSymbol> GetResults() => [.. this._exportedTypes];
1212

1313
public override void VisitAssembly(IAssemblySymbol symbol)
1414
{

0 commit comments

Comments
 (0)