Skip to content

Commit

Permalink
remove unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 4, 2024
1 parent f087e8f commit abc87b2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -3839,13 +3839,6 @@ Document.prototype.$toObject = function(options, json) {
_seen: (options && options._seen) || new Map()
});

if (utils.hasUserDefinedProperty(options, 'getters')) {
cloneOptions.getters = options.getters;
}
if (utils.hasUserDefinedProperty(options, 'virtuals')) {
cloneOptions.virtuals = options.virtuals;
}

const depopulate = options.depopulate ||
(options._parentOptions && options._parentOptions.depopulate || false);
// _isNested will only be true if this is not the top level document, we
Expand Down

0 comments on commit abc87b2

Please sign in to comment.