@@ -113,7 +113,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
113
113
if ( typeof optionsOrCb === "function" ) {
114
114
this . send ( command , optionsOrCb ) ;
115
115
} else if ( typeof cb === "function" ) {
116
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
116
+ if ( typeof optionsOrCb !== "object" ) {
117
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
118
+ }
117
119
this . send ( command , optionsOrCb || { } , cb ) ;
118
120
} else {
119
121
return this . send ( command , optionsOrCb ) ;
@@ -143,7 +145,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
143
145
if ( typeof optionsOrCb === "function" ) {
144
146
this . send ( command , optionsOrCb ) ;
145
147
} else if ( typeof cb === "function" ) {
146
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
148
+ if ( typeof optionsOrCb !== "object" ) {
149
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
150
+ }
147
151
this . send ( command , optionsOrCb || { } , cb ) ;
148
152
} else {
149
153
return this . send ( command , optionsOrCb ) ;
@@ -173,7 +177,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
173
177
if ( typeof optionsOrCb === "function" ) {
174
178
this . send ( command , optionsOrCb ) ;
175
179
} else if ( typeof cb === "function" ) {
176
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
180
+ if ( typeof optionsOrCb !== "object" ) {
181
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
182
+ }
177
183
this . send ( command , optionsOrCb || { } , cb ) ;
178
184
} else {
179
185
return this . send ( command , optionsOrCb ) ;
@@ -203,7 +209,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
203
209
if ( typeof optionsOrCb === "function" ) {
204
210
this . send ( command , optionsOrCb ) ;
205
211
} else if ( typeof cb === "function" ) {
206
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
212
+ if ( typeof optionsOrCb !== "object" ) {
213
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
214
+ }
207
215
this . send ( command , optionsOrCb || { } , cb ) ;
208
216
} else {
209
217
return this . send ( command , optionsOrCb ) ;
@@ -239,7 +247,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
239
247
if ( typeof optionsOrCb === "function" ) {
240
248
this . send ( command , optionsOrCb ) ;
241
249
} else if ( typeof cb === "function" ) {
242
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
250
+ if ( typeof optionsOrCb !== "object" ) {
251
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
252
+ }
243
253
this . send ( command , optionsOrCb || { } , cb ) ;
244
254
} else {
245
255
return this . send ( command , optionsOrCb ) ;
@@ -275,7 +285,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
275
285
if ( typeof optionsOrCb === "function" ) {
276
286
this . send ( command , optionsOrCb ) ;
277
287
} else if ( typeof cb === "function" ) {
278
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
288
+ if ( typeof optionsOrCb !== "object" ) {
289
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
290
+ }
279
291
this . send ( command , optionsOrCb || { } , cb ) ;
280
292
} else {
281
293
return this . send ( command , optionsOrCb ) ;
@@ -305,7 +317,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
305
317
if ( typeof optionsOrCb === "function" ) {
306
318
this . send ( command , optionsOrCb ) ;
307
319
} else if ( typeof cb === "function" ) {
308
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
320
+ if ( typeof optionsOrCb !== "object" ) {
321
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
322
+ }
309
323
this . send ( command , optionsOrCb || { } , cb ) ;
310
324
} else {
311
325
return this . send ( command , optionsOrCb ) ;
@@ -335,7 +349,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
335
349
if ( typeof optionsOrCb === "function" ) {
336
350
this . send ( command , optionsOrCb ) ;
337
351
} else if ( typeof cb === "function" ) {
338
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
352
+ if ( typeof optionsOrCb !== "object" ) {
353
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
354
+ }
339
355
this . send ( command , optionsOrCb || { } , cb ) ;
340
356
} else {
341
357
return this . send ( command , optionsOrCb ) ;
@@ -365,7 +381,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
365
381
if ( typeof optionsOrCb === "function" ) {
366
382
this . send ( command , optionsOrCb ) ;
367
383
} else if ( typeof cb === "function" ) {
368
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
384
+ if ( typeof optionsOrCb !== "object" ) {
385
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
386
+ }
369
387
this . send ( command , optionsOrCb || { } , cb ) ;
370
388
} else {
371
389
return this . send ( command , optionsOrCb ) ;
@@ -395,7 +413,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
395
413
if ( typeof optionsOrCb === "function" ) {
396
414
this . send ( command , optionsOrCb ) ;
397
415
} else if ( typeof cb === "function" ) {
398
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
416
+ if ( typeof optionsOrCb !== "object" ) {
417
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
418
+ }
399
419
this . send ( command , optionsOrCb || { } , cb ) ;
400
420
} else {
401
421
return this . send ( command , optionsOrCb ) ;
@@ -425,7 +445,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
425
445
if ( typeof optionsOrCb === "function" ) {
426
446
this . send ( command , optionsOrCb ) ;
427
447
} else if ( typeof cb === "function" ) {
428
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
448
+ if ( typeof optionsOrCb !== "object" ) {
449
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
450
+ }
429
451
this . send ( command , optionsOrCb || { } , cb ) ;
430
452
} else {
431
453
return this . send ( command , optionsOrCb ) ;
@@ -461,7 +483,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
461
483
if ( typeof optionsOrCb === "function" ) {
462
484
this . send ( command , optionsOrCb ) ;
463
485
} else if ( typeof cb === "function" ) {
464
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
486
+ if ( typeof optionsOrCb !== "object" ) {
487
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
488
+ }
465
489
this . send ( command , optionsOrCb || { } , cb ) ;
466
490
} else {
467
491
return this . send ( command , optionsOrCb ) ;
@@ -491,7 +515,9 @@ export class DynamoDBDocument extends DynamoDBDocumentClient {
491
515
if ( typeof optionsOrCb === "function" ) {
492
516
this . send ( command , optionsOrCb ) ;
493
517
} else if ( typeof cb === "function" ) {
494
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
518
+ if ( typeof optionsOrCb !== "object" ) {
519
+ throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
520
+ }
495
521
this . send ( command , optionsOrCb || { } , cb ) ;
496
522
} else {
497
523
return this . send ( command , optionsOrCb ) ;
0 commit comments