Skip to content

Commit 8c59b1f

Browse files
committed
cleanup
1 parent c5d79f9 commit 8c59b1f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/GraphQL.EntityFramework.Analyzers/FilterIdentityProjectionAnalyzer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ static bool IsForeignKeyProperty(IPropertySymbol propertySymbol)
391391
// Check for System.Guid using symbol comparison instead of string
392392
if (underlyingType is INamedTypeSymbol namedTypeSymbol)
393393
{
394-
return namedTypeSymbol.SpecialType == SpecialType.None &&
395-
namedTypeSymbol.Name == "Guid" &&
394+
return namedTypeSymbol is { SpecialType: SpecialType.None, Name: "Guid" } &&
396395
namedTypeSymbol.ContainingNamespace?.ToDisplayString() == "System";
397396
}
398397

src/GraphQL.EntityFramework.CodeFixes/FilterIdentityProjectionCodeFixProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context)
4343
static async Task<Document> RemoveIdentityProjectionAsync(
4444
Document document,
4545
InvocationExpressionSyntax invocation,
46-
CancellationToken cancellationToken)
46+
Cancel cancel)
4747
{
48-
var root = await document.GetSyntaxRootAsync(cancellationToken);
48+
var root = await document.GetSyntaxRootAsync(cancel);
4949
if (root == null)
5050
{
5151
return document;

0 commit comments

Comments
 (0)