Skip to content

Commit

Permalink
fixing nullability warning
Browse files Browse the repository at this point in the history
  • Loading branch information
allantargino committed May 6, 2024
1 parent 14a8abf commit fa4f30a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ public sealed class OtherBindingsOrchestrationOrchestrationVisitor : Orchestrati
/// <inheritdoc/>
public override bool Initialize()
{
List<INamedTypeSymbol> candidateSymbols = [
List<INamedTypeSymbol?> candidateSymbols = [
this.KnownTypeSymbols.DurableClientAttribute,
this.KnownTypeSymbols.EntityTriggerAttribute,
];

// filter out null values, since some of them may not be available during compilation
this.bannedBindings = candidateSymbols.Where(s => s != null).ToImmutableArray();
this.bannedBindings = candidateSymbols.Where(s => s != null).ToImmutableArray()!;

return this.bannedBindings.Length > 0;
}
Expand Down

0 comments on commit fa4f30a

Please sign in to comment.