Skip to content

Commit

Permalink
chore(package): update xo to version 0.25.2
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and pvdlg committed Sep 26, 2019
1 parent a317bae commit 4b73226
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"semantic-release": "^15.0.0",
"sinon": "^7.1.1",
"tempy": "^0.3.0",
"xo": "^0.24.0"
"xo": "^0.25.2"
},
"engines": {
"node": ">=8.3"
Expand Down
8 changes: 4 additions & 4 deletions test/helpers/git-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export async function gitGetCommits(from, execaOpts) {
* Checkout a branch on the current git repository.
*
* @param {String} branch Branch name.
* @param {Boolean} create `true` to create the branch, `false` to checkout an existing branch.
* @param {Boolean} create to create the branch, `false` to checkout an existing branch.
* @param {Object} [execaOpts] Options to pass to `execa`.
*/
export async function gitCheckout(branch, create = true, execaOpts) {
export async function gitCheckout(branch, create, execaOpts) {
await execa('git', create ? ['checkout', '-b', branch] : ['checkout', branch], execaOpts);
}

Expand Down Expand Up @@ -176,12 +176,12 @@ export async function gitStaged(execaOpts) {
/**
* Get the list of files included in a commit.
*
* @param {String} [ref='HEAD'] The git reference for which to retrieve the files.
* @param {String} ref The git reference for which to retrieve the files.
* @param {Object} [execaOpts] Options to pass to `execa`.
*
* @return {Array<String>} The list of files path included in the commit.
*/
export async function gitCommitedFiles(ref = 'HEAD', execaOpts) {
export async function gitCommitedFiles(ref, execaOpts) {
return (await execa('git', ['diff-tree', '-r', '--name-only', '--no-commit-id', '-r', ref], execaOpts)).stdout
.split('\n')
.filter(file => Boolean(file));
Expand Down

0 comments on commit 4b73226

Please sign in to comment.