From fb9421b09c14f496a33fa46f3954ef5c8764896d Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 3 Oct 2018 14:22:35 +0200 Subject: [PATCH] refactor: upgrade xo to version 0.23.0 (#25) --- lib/git.js | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/git.js b/lib/git.js index f46b987..9ca2c02 100644 --- a/lib/git.js +++ b/lib/git.js @@ -48,7 +48,7 @@ async function push(origin, branch) { /** * @return {String} The sha of the head commit on the local repository */ -async function gitHead() { +function gitHead() { return execa.stdout('git', ['rev-parse', 'HEAD']); } @@ -59,7 +59,7 @@ async function gitHead() { * @param {string} branch The branch to verify * @return {Promise} The response received */ -async function verifyRemoteBranch(origin, branch) { +function verifyRemoteBranch(origin, branch) { return execa('git', ['ls-remote', '--exit-code', '--heads', origin, branch]); } @@ -70,7 +70,7 @@ async function verifyRemoteBranch(origin, branch) { * @param {boolean} create If the branch should be created * @return {Promise} The response received */ -async function checkout(branch, create) { +function checkout(branch, create) { if (create) { return execa('git', ['checkout', '-b', branch]); } @@ -84,7 +84,7 @@ async function checkout(branch, create) { * @param {string} branch The branch to merge into the current one * @return {Promise} The response received */ -async function merge(branch) { +function merge(branch) { return execa('git', ['merge', '--no-edit', '--commit', branch]); } @@ -95,7 +95,7 @@ async function merge(branch) { * @param {string} branch The branch name * @return {Promise} The response received */ -async function pull(origin, branch) { +function pull(origin, branch) { return execa('git', ['pull', origin, branch]); } diff --git a/package.json b/package.json index ecde816..88db64c 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "semantic-release": "^15.7.0", "sinon": "^6.1.3", "tempy": "^0.2.1", - "xo": "^0.22.0" + "xo": "^0.23.0" }, "engines": { "node": ">=8.3"