diff --git a/packages/mongodb-dialects/mongosh/src/main/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatter.kt b/packages/mongodb-dialects/mongosh/src/main/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatter.kt index 7aac4432..7b04c04c 100644 --- a/packages/mongodb-dialects/mongosh/src/main/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatter.kt +++ b/packages/mongodb-dialects/mongosh/src/main/kotlin/com/mongodb/jbplugin/dialects/mongosh/MongoshDialectFormatter.kt @@ -272,9 +272,6 @@ private fun MongoshBackend.resolveFieldReference(fieldRef: HasFieldReference when (val ref = fieldRef.reference) { is FromSchema -> registerConstant(ref.fieldName) is Unknown -> registerVariable("field", BsonAny) - else -> { - // Do nothing for now - } } private fun MongoshBackend.emitCollectionReference(collRef: HasCollectionReference?): MongoshBackend {