Skip to content

Commit 49f3c16

Browse files
committed
Fix indentation
1 parent 856796b commit 49f3c16

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/txn.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Txn {
5151
this.useBestEffort = defaultedTxnOpts.bestEffort;
5252
if (this.useBestEffort && !this.useReadOnly) {
5353
this.dc.debug(
54-
`Client attempted to query using best-effort without setting the transaction to read-only`
54+
`Client attempted to query using best-effort without setting the transaction to read-only`,
5555
);
5656
throw ERR_BEST_EFFORT_REQUIRED_READ_ONLY;
5757
}
@@ -65,7 +65,7 @@ export class Txn {
6565
public query(
6666
q: string,
6767
metadata?: grpc.Metadata,
68-
options?: grpc.CallOptions
68+
options?: grpc.CallOptions,
6969
): Promise<types.Response> {
7070
return this.queryWithVars(q, undefined, metadata, options);
7171
}
@@ -82,7 +82,7 @@ export class Txn {
8282
): Promise<types.Response> {
8383
if (this.finished) {
8484
this.dc.debug(
85-
`Query request (ERR_FINISHED):\nquery = ${q}\nvars = ${vars}`
85+
`Query request (ERR_FINISHED):\nquery = ${q}\nvars = ${vars}`,
8686
);
8787
throw ERR_FINISHED;
8888
}
@@ -171,7 +171,7 @@ export class Txn {
171171
public async mutate(
172172
mu: types.Mutation,
173173
metadata?: grpc.Metadata,
174-
options?: grpc.CallOptions
174+
options?: grpc.CallOptions,
175175
): Promise<types.Response> {
176176
const req = new messages.Request();
177177
req.setStartTs(this.ctx.getStartTs());
@@ -184,7 +184,7 @@ export class Txn {
184184
public async doRequest(
185185
req: messages.Request,
186186
metadata?: grpc.Metadata,
187-
options?: grpc.CallOptions
187+
options?: grpc.CallOptions,
188188
): Promise<types.Response> {
189189
const mutationList = req.getMutationsList();
190190
if (this.finished) {
@@ -194,7 +194,7 @@ export class Txn {
194194
this.dc.debug(
195195
`Do request (ERR_FINISHED):\nmutation = ${stringifyMessage(
196196
mutationList[0]
197-
)}`
197+
)}`,
198198
);
199199
throw ERR_FINISHED;
200200
}
@@ -204,7 +204,7 @@ export class Txn {
204204
this.dc.debug(
205205
`Do request (ERR_READ_ONLY):\nmutation = ${stringifyMessage(
206206
mutationList[0]
207-
)}`
207+
)}`,
208208
);
209209
throw ERR_READ_ONLY;
210210
}
@@ -261,7 +261,7 @@ export class Txn {
261261
*/
262262
public async commit(
263263
metadata?: grpc.Metadata,
264-
options?: grpc.CallOptions
264+
options?: grpc.CallOptions,
265265
): Promise<void> {
266266
if (this.finished) {
267267
throw ERR_FINISHED;

0 commit comments

Comments
 (0)