Skip to content

Commit 3b567a9

Browse files
committed
touch ups
1 parent 036c615 commit 3b567a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class Anvil {
132132
data,
133133
errors,
134134
} = await this._wrapRequest(
135-
async () => this._request(url, options),
135+
() => this._request(url, options),
136136
clientOptions,
137137
)
138138

@@ -215,9 +215,9 @@ class Anvil {
215215
return fetch(url, opts)
216216
}
217217

218-
async _wrapRequest (preparedRequest, clientOptions = {}) {
218+
async _wrapRequest (retryableRequestFn, clientOptions = {}) {
219219
return this._throttle(async (retry) => {
220-
const response = await preparedRequest()
220+
const response = await retryableRequestFn()
221221
const statusCode = response.status
222222

223223
if (statusCode >= 300) {

0 commit comments

Comments
 (0)