Cleanup
This commit is contained in:
5
node_modules/mongodb/lib/operations/validate_collection.js
generated
vendored
5
node_modules/mongodb/lib/operations/validate_collection.js
generated
vendored
@@ -8,14 +8,13 @@ class ValidateCollectionOperation extends CommandOperation {
|
||||
let command = { validate: collectionName };
|
||||
const keys = Object.keys(options);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
if (options.hasOwnProperty(keys[i]) && keys[i] !== 'session') {
|
||||
if (Object.prototype.hasOwnProperty.call(options, keys[i]) && keys[i] !== 'session') {
|
||||
command[keys[i]] = options[keys[i]];
|
||||
}
|
||||
}
|
||||
|
||||
super(admin.s.db, options, null, command);
|
||||
|
||||
this.collectionName;
|
||||
this.collectionName = collectionName;
|
||||
}
|
||||
|
||||
execute(callback) {
|
||||
|
||||
Reference in New Issue
Block a user