From 0204da2162330e41172501fa02bb9057774e3078 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Mon, 15 Aug 2016 22:25:39 -0700 Subject: [PATCH] Address comments --- datastore/concepts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/datastore/concepts.js b/datastore/concepts.js index 295d61369e..d8251f7d48 100644 --- a/datastore/concepts.js +++ b/datastore/concepts.js @@ -1053,7 +1053,7 @@ function transferFunds (fromKey, toKey, amount, callback) { ], function (err, accounts) { if (err) { return transaction.rollback(function (_err) { - return callback(err || _err); + return callback(_err || err); }); } @@ -1223,7 +1223,7 @@ Transaction.prototype.testTransactionalGetOrCreate = function (callback) { if (err) { // An error occurred while getting the values. return transaction.rollback(function (_err) { - return callback(err || _err); + return callback(_err || err); }); } @@ -1310,7 +1310,7 @@ Transaction.prototype.testSingleEntityGroupReadOnly = function (callback) { datastore.get(taskListKey, function (err) { if (err) { return transaction.rollback(function (_err) { - return callback(err || _err); + return callback(_err || err); }); } @@ -1321,7 +1321,7 @@ Transaction.prototype.testSingleEntityGroupReadOnly = function (callback) { if (err) { // An error occurred while running the query. return transaction.rollback(function (_err) { - return callback(err || _err); + return callback(_err || err); }); }