Skip to content

Commit

Permalink
refactor: upgrade xo to version 0.23.0 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and byCedric committed Oct 3, 2018
1 parent e41b646 commit fb9421b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}

Expand All @@ -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]);
}

Expand All @@ -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]);
}
Expand All @@ -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]);
}

Expand All @@ -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]);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fb9421b

Please sign in to comment.