Skip to content

Commit

Permalink
[r] naming
Browse files Browse the repository at this point in the history
  • Loading branch information
i4004 committed Feb 27, 2023
1 parent c58baf7 commit 326a709
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Simplify.FluentNHibernate/StatelessSessionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static T GetSingleObject<T>(this IStatelessSession session, Expression<Fu
if (query != null)
queryable = queryable.Where(query);

return queryable.SingleOrDefault();
return queryable!.SingleOrDefault()!;
}

/// <summary>
Expand Down Expand Up @@ -65,7 +65,7 @@ public static T GetSingleObjectCacheable<T>(this IStatelessSession session, Expr

queryable = queryable.WithOptions(x => x.SetCacheable(true));

return queryable.SingleOrDefault();
return queryable.SingleOrDefault()!;
}

/// <summary>
Expand Down Expand Up @@ -102,7 +102,7 @@ public static T GetFirstObject<T>(this IStatelessSession session, Expression<Fun
if (query != null)
queryable = queryable.Where(query);

return queryable.FirstOrDefault();
return queryable.FirstOrDefault()!;
}

/// <summary>
Expand Down

0 comments on commit 326a709

Please sign in to comment.