Skip to content

Commit 7eb2d6e

Browse files
author
Bart Koelman
authored
Cleanup after merge: Move declaration closer to usage (#712)
1 parent 88f19ae commit 7eb2d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonApiDotNetCore/Extensions/IQueryableExtensions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,7 @@ private static IQueryable<TSource> CallGenericWhereMethod<TSource>(IQueryable<TS
245245
var concreteType = typeof(TSource);
246246
PropertyInfo property;
247247
MemberExpression left;
248-
Expression right;
249-
248+
250249
// {model}
251250
var parameter = Expression.Parameter(concreteType, "model");
252251
// Is relationship attribute
@@ -278,6 +277,7 @@ private static IQueryable<TSource> CallGenericWhereMethod<TSource>(IQueryable<TS
278277

279278
try
280279
{
280+
Expression right;
281281
if (op == FilterOperation.isnotnull || op == FilterOperation.isnull)
282282
right = Expression.Constant(null);
283283
else

0 commit comments

Comments
 (0)