Skip to content

Commit

Permalink
Remove spaces before colon in object literals
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Jul 25, 2015
1 parent 560795b commit 7b56b0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions lib/bulk.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ Bulk.prototype.tojson = function () {
Bulk.prototype.execute = function (cb) {
var self = this
var result = {
writeErrors : [ ],
writeConcernErrors : [ ],
nInserted : 0,
nUpserted : 0,
nMatched : 0,
nModified : 0,
nRemoved : 0,
upserted : [ ]
writeErrors: [ ],
writeConcernErrors: [ ],
nInserted: 0,
nUpserted: 0,
nMatched: 0,
nModified: 0,
nRemoved: 0,
upserted: [ ]
}

this._cmds.push(this._currCmd)
Expand Down
2 changes: 1 addition & 1 deletion test/test-bulk-updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ insert('bulk', [{
bulk.find({type: 'fire'}).remove()
bulk.find({type: 'water'}).updateOne({$set: {hp: 100}})

bulk.find({name: 'Squirtle'}).upsert().updateOne({$set : {name: 'Wartortle', type: 'water'}})
bulk.find({name: 'Squirtle'}).upsert().updateOne({$set: {name: 'Wartortle', type: 'water'}})
bulk.find({name: 'Bulbasaur'}).upsert().updateOne({$setOnInsert: {name: 'Bulbasaur'}, $set: {type: 'grass', level: 1}})

bulk.execute(function (err, res) {
Expand Down

0 comments on commit 7b56b0f

Please sign in to comment.