From daae54dc6b2fec6798cfa0e15fc622df708ac253 Mon Sep 17 00:00:00 2001
From: Daniel Bruce <djbruce@google.com>
Date: Thu, 23 Nov 2023 10:00:28 -0500
Subject: [PATCH] Call the function fed into the promise resolver

resolver should be the name used just to be consistent with all other code.
---
 src/transaction.ts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/transaction.ts b/src/transaction.ts
index 6513ad5af..a555b9709 100644
--- a/src/transaction.ts
+++ b/src/transaction.ts
@@ -779,9 +779,7 @@ class Transaction extends DatastoreRequest {
     if (options.transactionOptions) {
       reqOpts.transactionOptions = options.transactionOptions;
     }
-    const promiseFunction: Resolver<
-      google.datastore.v1.IBeginTransactionResponse
-    > = (
+    const resolver: Resolver<google.datastore.v1.IBeginTransactionResponse> = (
       resolve: PromiseResolveFunction<google.datastore.v1.IBeginTransactionResponse>
     ) => {
       this.request_(
@@ -800,7 +798,7 @@ class Transaction extends DatastoreRequest {
         }
       );
     };
-    return new Promise(promiseFunction);
+    return new Promise(resolver);
   }
 
   /**