Skip to content

Commit b1ee426

Browse files
fixup! Support CacheMode in QueryBatch
Adjust a detail in the cache mode switch
1 parent 9fae7b9 commit b1ee426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Engine/ISessionImplementor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ internal static void AutoFlushIfRequired(this ISessionImplementor implementor, I
5858
/// dispose will set the session cache mode back to its original value.</returns>
5959
internal static IDisposable SwitchCacheMode(this ISessionImplementor session, CacheMode? cacheMode)
6060
{
61-
if (session == null || !cacheMode.HasValue || cacheMode == session.CacheMode)
61+
if (!cacheMode.HasValue || cacheMode == session.CacheMode)
6262
return null;
6363
return new CacheModeSwitch(session, cacheMode.Value);
6464
}

0 commit comments

Comments
 (0)