Skip to content

Commit

Permalink
fix(types): Make gaxOptions optional in Transaction.rollback() (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenius authored and JustinBeckwith committed Jan 23, 2019
1 parent 4cd6019 commit 51a5ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transaction.ts
Expand Up @@ -360,7 +360,7 @@ class Transaction extends DatastoreRequest {
* const apiResponse = data[0];
* });
*/
rollback(gaxOptions, callback?) {
rollback(gaxOptions?, callback?) {
if (is.fn(gaxOptions)) {
callback = gaxOptions;
gaxOptions = {};
Expand All @@ -372,7 +372,7 @@ class Transaction extends DatastoreRequest {
{
client: 'DatastoreClient',
method: 'rollback',
gaxOpts: gaxOptions,
gaxOpts: gaxOptions || {},
},
(err, resp) => {
this.skipCommit = true;
Expand Down

0 comments on commit 51a5ce5

Please sign in to comment.