Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add ESLint (#93)
  • Loading branch information
TheDancingCode authored and eddiemoore committed Jul 21, 2018
1 parent 625807c commit 77d7a5e
Show file tree
Hide file tree
Showing 5 changed files with 1,709 additions and 795 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,14 @@
{
"env": {
"node": true,
"mocha": true
},
"globals": {
"expect": true
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-console": "off",
"no-empty": ["error", { "allowEmptyCatch": true }]
}
}
4 changes: 2 additions & 2 deletions lib/codecov.js
Expand Up @@ -156,7 +156,7 @@ var sendToCodecovV2 = function(
Accept: 'text/plain',
},
},
function(err, response, result) {
function(err, response) {
if (err || response.statusCode !== 200) {
console.log(' ' + (err || response.body))
return response
Expand Down Expand Up @@ -210,7 +210,7 @@ var sendToCodecovV3 = function(
'x-amz-acl': 'public-read',
},
},
function(err, response, result) {
function(err) {
if (err) {
sendToCodecovV2(
codecov_endpoint,
Expand Down

0 comments on commit 77d7a5e

Please sign in to comment.