chore(package): update xo to version 0.25.0

This commit is contained in:
greenkeeper[bot]
2019-09-26 10:18:12 -07:00
committed by Pierre Vanduynslager
parent c86045ca49
commit 5986bf920e
8 changed files with 12 additions and 8 deletions
+2
View File
@@ -1,3 +1,5 @@
/* eslint require-atomic-updates: off */
const {isString, isPlainObject} = require('lodash');
const {getGitHead} = require('../git');
const hideSensitive = require('../hide-sensitive');
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = async ({cwd, env, options: {repositoryUrl, branch}}) => {
// Test if push is allowed without transforming the URL (e.g. is ssh keys are set up)
try {
await verifyAuth(repositoryUrl, branch, {cwd, env});
} catch (error) {
} catch (_) {
const envVar = Object.keys(GIT_TOKENS).find(envVar => !isNil(env[envVar]));
const gitCredentials = `${GIT_TOKENS[envVar] || ''}${env[envVar] || ''}`;
+1 -1
View File
@@ -63,7 +63,7 @@ async function isRefInHistory(ref, execaOpts) {
async function fetch(repositoryUrl, execaOpts) {
try {
await execa('git', ['fetch', '--unshallow', '--tags', repositoryUrl], execaOpts);
} catch (error) {
} catch (_) {
await execa('git', ['fetch', '--tags', repositoryUrl], execaOpts);
}
}