Skip to content

Commit e505147

Browse files
committed
Simplify SupportsType method
1 parent 68b0f51 commit e505147

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/NHibernate/Hql/Ast/HqlTreeNode.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,9 @@ internal static bool SupportsType(System.Type type)
274274
case TypeCode.Double:
275275
return true;
276276
default:
277-
return new[]
278-
{
279-
typeof(Guid),
280-
typeof(DateTimeOffset)
281-
}.Contains(type);
277+
return
278+
type == typeof(Guid) ||
279+
type == typeof(DateTimeOffset);
282280
}
283281
}
284282
}

0 commit comments

Comments
 (0)