Skip to content

Commit 936d066

Browse files
committed
style: undo unnecessary whitespace changes
1 parent 4cc757a commit 936d066

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

lib/drivers/node-mongodb-native/collection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function iter(i) {
119119
throw error;
120120
}
121121
}
122+
122123
let _args = args;
123124
let callback = null;
124125
if (this._shouldBufferCommands() && this.buffer) {

lib/helpers/query/castUpdate.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ module.exports = function castUpdate(schema, obj, options, context, filter) {
114114
+ 'Expected an object, received ' + typeof val;
115115
throw new Error(msg);
116116
}
117+
117118
if (op.startsWith('$') && utils.isEmptyObject(val)) {
118119
delete ret[op];
119120
}

lib/model.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3335,6 +3335,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
33353335
const ordered = options.ordered == null ? true : options.ordered;
33363336

33373337
const validations = ops.map(op => castBulkWrite(this, op, options));
3338+
33383339
return new Promise((resolve, reject) => {
33393340
if (ordered) {
33403341
each(validations, (fn, cb) => fn(cb), error => {
@@ -3351,6 +3352,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
33513352
if (error) {
33523353
return reject(error);
33533354
}
3355+
33543356
resolve(res);
33553357
});
33563358
} catch (err) {
@@ -3422,6 +3424,7 @@ Model.bulkWrite = async function bulkWrite(ops, options) {
34223424
res.mongoose.results = results;
34233425
}
34243426
}
3427+
34253428
resolve(res);
34263429
});
34273430
}

0 commit comments

Comments
 (0)