format code

This commit is contained in:
fengkx
2019-03-10 09:37:15 +08:00
parent 1c0bf5697f
commit ca0b9bca33
+3 -3
View File
@@ -27,7 +27,7 @@ if (config.proxy && config.proxy.protocol && typeof config.proxy.protocol === 's
const custom = got.extend({
retry: {
retries: config.requestRetry,
statusCodes: [408, 413, 429, 500, 502, 503, 504, 404] // add 404 to default for unit test
statusCodes: [408, 413, 429, 500, 502, 503, 504, 404], // add 404 to default for unit test
},
hooks: {
beforeRetry: [
@@ -51,10 +51,10 @@ const custom = got.extend({
},
],
onError: [
error => {
(error) => {
error.response.status = error.response.statusCode;
return error;
}
},
],
},
agent: agent,