Skip to content

Commit 04c645b

Browse files
committed
cleanup
1 parent a96c4e5 commit 04c645b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"src"
55
],
66
"sdk": {
7-
"version": "8.0.200"
7+
"version": "8.0.102"
88
}
99
}

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)