Skip to content

Commit 6b06adf

Browse files
committed
And Resharper bug workaround
1 parent 904ce17 commit 6b06adf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/JsonApiDotNetCore/Queries/Expressions/LogicalExpression.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public LogicalExpression(LogicalOperator @operator, IImmutableList<FilterExpress
5252
{
5353
ArgumentGuard.NotNull(filters);
5454

55+
// Workaround for https://youtrack.jetbrains.com/issue/RSRP-496512/Invalid-Use-collection-expression-suggestion.
56+
// ReSharper disable once UseCollectionExpression
5557
ImmutableArray<FilterExpression> terms = filters.WhereNotNull().ToImmutableArray();
5658

5759
return terms.Length > 1 ? new LogicalExpression(@operator, terms) : terms.FirstOrDefault();

0 commit comments

Comments
 (0)