Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit 43b48a3

Browse files
greenkeeper[bot]pvdlg
authored andcommitted
chore(package): update xo to version 0.23.0
1 parent c3da8f3 commit 43b48a3

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ module.exports = async () => {
5757
} else if (!script) {
5858
process.exitCode = 1;
5959
}
60-
} catch (err) {
61-
if (err.name !== 'YError') {
62-
console.error(err);
60+
} catch (error) {
61+
if (error.name !== 'YError') {
62+
console.error(error);
6363
}
6464
process.exitCode = 1;
6565
}

lib/get-jobs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ module.exports = async (travisOpts, travisToken, buildId, retryOpts) => {
2828
}),
2929
Object.assign({retries: 5, factor: 2, minTimeout: 1000}, retryOpts)
3030
)).body.jobs;
31-
} catch (err) {
31+
} catch (error) {
3232
// https://github.com/semantic-release/travis-deploy-once/issues/3
3333
// https://github.com/pwmckenna/node-travis-ci/issues/17
34-
if (err.response && err.response.body && err.response.body.file === 'not found') {
34+
if (error.response && error.response.body && error.response.body.file === 'not found') {
3535
throw new Error(
3636
'The GitHub user of the "GH_TOKEN" has not authenticated Travis CI yet. Go to https://travis-ci.com/, login with the GitHub user of this token and then restart this job.'
3737
);
3838
}
39-
throw err;
39+
throw error;
4040
}
4141
};

lib/wait-for-other-jobs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ module.exports = async (
3333
// On subsequent attempts call the API to get the most recent statuses
3434
try {
3535
jobs = await getJobs(travisOpts, travisToken, buildId, jobsRetryOpts);
36-
} catch (err) {
37-
logger.log(`Failed attempt ${attempt}, because Travis API returned the error: ${err}.`);
38-
throw err;
36+
} catch (error) {
37+
logger.log(`Failed attempt ${attempt}, because Travis API returned the error: ${error}.`);
38+
throw error;
3939
}
4040
}
4141
jobCount = jobs.length;
@@ -53,9 +53,9 @@ module.exports = async (
5353
await pRetry(run, Object.assign({forever: true, factor: 1.5, minTimeout: 3000, maxTimeout: 15000}, retryOpts));
5454
logger.log(`Success at attempt ${lastAttempt}. All ${jobCount} jobs passed.`);
5555
return true;
56-
} catch (err) {
56+
} catch (error) {
5757
// Abort error
58-
logger.error(`Aborting at attempt ${lastAttempt}. Job ${err.message} failed.`);
58+
logger.error(`Aborting at attempt ${lastAttempt}. Job ${error.message} failed.`);
5959
return false;
6060
}
6161
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"proxyquire": "^2.0.0",
4545
"semantic-release": "^15.0.0",
4646
"sinon": "^6.0.0",
47-
"xo": "^0.22.0"
47+
"xo": "^0.23.0"
4848
},
4949
"engines": {
5050
"node": ">=6"

0 commit comments

Comments
 (0)