Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 452794d

Browse files
renovate[bot]renovate-botehmicky
authored
chore(deps): update dependency @netlify/eslint-config-node to ^4.1.0 (#656)
* chore(deps): update dependency @netlify/eslint-config-node to ^4.1.0 * fix: fix linting errors Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: ehmicky <ehmicky@gmail.com>
1 parent 2c3f837 commit 452794d

File tree

5 files changed

+30
-96
lines changed

5 files changed

+30
-96
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ try {
123123
deploy_id: '4567',
124124
})
125125
// Calls may fail!
126-
} catch (error) {
126+
} catch {
127127
// handle error
128128
}
129129
```

package-lock.json

Lines changed: 25 additions & 91 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"qs": "^6.9.6"
6767
},
6868
"devDependencies": {
69-
"@netlify/eslint-config-node": "^4.0.7",
69+
"@netlify/eslint-config-node": "^4.1.0",
7070
"ava": "^3.0.0",
7171
"from2-string": "^1.1.0",
7272
"husky": "^4.3.8",

src/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const host = `${domain}:${port}`
1717
const origin = `${scheme}://${host}`
1818
const testAccessToken = 'testAccessToken'
1919

20-
const AGENT_KEEP_ALIVE_MSECS = 60000
20+
const AGENT_KEEP_ALIVE_MSECS = 60_000
2121
const AGENT_MAX_SOCKETS = 10
2222
const AGENT_MAX_FREE_SOCKETS = 10
23-
const AGENT_TIMEOUT = 60000
23+
const AGENT_TIMEOUT = 60_000
2424
const agent = new http.Agent({
2525
keepAlive: true,
2626
keepAliveMsecs: AGENT_KEEP_ALIVE_MSECS,

src/methods/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const parseJsonResponse = function (response, textResponse, responseType) {
3333

3434
try {
3535
return JSON.parse(textResponse)
36-
} catch (error) {
36+
} catch {
3737
throw new TextHTTPError(response, textResponse)
3838
}
3939
}

0 commit comments

Comments
 (0)