Skip to content

Commit

Permalink
chore: remove propprop (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith committed Jul 27, 2018
1 parent e992abc commit 889d9e5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"lodash.flatten": "^4.4.0",
"lodash.merge": "^4.6.1",
"prop-assign": "^1.0.0",
"propprop": "^0.3.1",
"safe-buffer": "^5.1.2",
"split-array-stream": "^2.0.0",
"stream-events": "^1.0.4",
Expand Down
3 changes: 1 addition & 2 deletions src/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var arrify = require('arrify');
var common = require('@google-cloud/common');
var flatten = require('lodash.flatten');
var is = require('is');
var prop = require('propprop');
var util = require('util');

var entity = require('./entity.js');
Expand Down Expand Up @@ -200,7 +199,7 @@ Transaction.prototype.commit = function(gaxOptions, callback) {
// Take the `req` array built previously, and merge them into one request to
// send as the final transactional commit.
var reqOpts = {
mutations: flatten(this.requests_.map(prop('mutations'))),
mutations: flatten(this.requests_.map(x => x.mutations)),
};

this.request_(
Expand Down

0 comments on commit 889d9e5

Please sign in to comment.