sbglasius commented on code in PR #15744:
URL: https://github.com/apache/grails-core/pull/15744#discussion_r3518057840


##########
grails-data-mongodb/core/src/main/groovy/org/grails/datastore/gorm/mongo/api/MongoStaticApi.groovy:
##########
@@ -71,9 +71,9 @@ class MongoStaticApi<D> extends GormStaticApi<D> implements 
MongoAllOperations<D
         withSession { AbstractMongoSession session ->
             def entity = 
session.mappingContext.getPersistentEntity(persistentClass.name)
             filter = wrapFilterWithMultiTenancy(filter)
-            return session.getCollection(entity)
+            MongoCollection<D> collection = session.getCollection(entity)

Review Comment:
   Here it's named `session` later in other files you name it `mongoSession`, 
if it's the same, perhaps the name should be the same?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to