Skip to content

Commit abc87b2

Browse files
committed
remove unnecessary logic
1 parent f087e8f commit abc87b2

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/document.js

-7
Original file line numberDiff line numberDiff line change
@@ -3839,13 +3839,6 @@ Document.prototype.$toObject = function(options, json) {
38393839
_seen: (options && options._seen) || new Map()
38403840
});
38413841

3842-
if (utils.hasUserDefinedProperty(options, 'getters')) {
3843-
cloneOptions.getters = options.getters;
3844-
}
3845-
if (utils.hasUserDefinedProperty(options, 'virtuals')) {
3846-
cloneOptions.virtuals = options.virtuals;
3847-
}
3848-
38493842
const depopulate = options.depopulate ||
38503843
(options._parentOptions && options._parentOptions.depopulate || false);
38513844
// _isNested will only be true if this is not the top level document, we

0 commit comments

Comments
 (0)