Skip to content

Commit

Permalink
refactor: prefer filter shorter form
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Nov 19, 2018
1 parent 9f5645c commit 43dbd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/git.js
Expand Up @@ -29,7 +29,7 @@ async function getTags(execaOpts) {
return (await execa.stdout('git', ['tag'], execaOpts))
.split('\n')
.map(tag => tag.trim())
.filter(tag => Boolean(tag));
.filter(Boolean);
}

/**
Expand Down

0 comments on commit 43dbd10

Please sign in to comment.