@@ -30,7 +30,7 @@ function StripeResource(stripe, urlData) {
30
30
this . _urlData = urlData || { } ;
31
31
32
32
this . basePath = utils . makeURLInterpolator (
33
- this . basePath || stripe . getApiField ( 'basePath' ) ,
33
+ this . basePath || stripe . getApiField ( 'basePath' )
34
34
) ;
35
35
this . resourcePath = this . path ;
36
36
this . path = utils . makeURLInterpolator ( this . path ) ;
@@ -67,7 +67,7 @@ StripeResource.prototype = {
67
67
. join (
68
68
this . basePath ( urlData ) ,
69
69
this . path ( urlData ) ,
70
- typeof commandPath == 'function' ? commandPath ( urlData ) : commandPath ,
70
+ typeof commandPath == 'function' ? commandPath ( urlData ) : commandPath
71
71
)
72
72
. replace ( / \\ / g, '/' ) ; // ugly workaround for Windows
73
73
} ,
@@ -112,7 +112,7 @@ StripeResource.prototype = {
112
112
'Request aborted due to timeout being reached (' + timeout + 'ms)' ,
113
113
detail : timeoutErr ,
114
114
} ) ,
115
- null ,
115
+ null
116
116
) ;
117
117
} ;
118
118
} ,
@@ -188,7 +188,7 @@ StripeResource.prototype = {
188
188
exception : e ,
189
189
requestId : headers [ 'request-id' ] ,
190
190
} ) ,
191
- null ,
191
+ null
192
192
) ;
193
193
}
194
194
@@ -227,7 +227,7 @@ StripeResource.prototype = {
227
227
message : self . _generateConnectionErrorMessage ( requestRetries ) ,
228
228
detail : error ,
229
229
} ) ,
230
- null ,
230
+ null
231
231
) ;
232
232
} ;
233
233
} ,
@@ -266,7 +266,7 @@ StripeResource.prototype = {
266
266
// maxNetworkRetryDelay.
267
267
var sleepSeconds = Math . min (
268
268
initialNetworkRetryDelay * Math . pow ( numRetries - 1 , 2 ) ,
269
- maxNetworkRetryDelay ,
269
+ maxNetworkRetryDelay
270
270
) ;
271
271
272
272
// Apply some jitter by randomizing the value in the range of
@@ -322,7 +322,7 @@ StripeResource.prototype = {
322
322
StripeResource . MAX_BUFFERED_REQUEST_METRICS
323
323
) {
324
324
utils . emitWarning (
325
- 'Request metrics buffer is full, dropping telemetry message.' ,
325
+ 'Request metrics buffer is full, dropping telemetry message.'
326
326
) ;
327
327
} else {
328
328
this . _stripe . _prevRequestMetrics . push ( {
@@ -367,7 +367,7 @@ StripeResource.prototype = {
367
367
method ,
368
368
data ,
369
369
options . headers ,
370
- makeRequestWithData ,
370
+ makeRequestWithData
371
371
) ;
372
372
} else {
373
373
makeRequestWithData ( null , utils . stringifyRequestData ( data || { } ) ) ;
@@ -381,7 +381,7 @@ StripeResource.prototype = {
381
381
self . _getSleepTimeInMS ( requestRetries ) ,
382
382
apiVersion ,
383
383
headers ,
384
- requestRetries ,
384
+ requestRetries
385
385
) ;
386
386
}
387
387
@@ -453,7 +453,7 @@ StripeResource.prototype = {
453
453
// Send payload; we're safe:
454
454
req . write ( requestData ) ;
455
455
req . end ( ) ;
456
- } ,
456
+ }
457
457
) ;
458
458
} else {
459
459
// we're already connected
0 commit comments