Skip to content

Commit 270cb28

Browse files
committed
Simplify expression
1 parent c803af7 commit 270cb28

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Orm/Xtensive.Orm/Orm/Linq/MemberCompilation/MemberCompilerProvider.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ private static CompilerKey GetCompilerKey(MemberInfo member)
329329
}
330330

331331
if (targetType.IsEnum) {
332-
var declaringType = canonicalMember.DeclaringType;
333-
canonicalMember = GetCanonicalMethod((MethodInfo) canonicalMember, targetType != declaringType ? declaringType.GetMethods() : targetType.GetMethods());
332+
canonicalMember = GetCanonicalMethod((MethodInfo) canonicalMember, canonicalMember.DeclaringType.GetMethods());
334333
}
335334

336335
return new CompilerKey(canonicalMember);

0 commit comments

Comments
 (0)