refactor: prefer filter shorter form

This commit is contained in:
Pierre Vanduynslager 2018-11-19 18:24:11 -05:00
parent 9f5645cfa0
commit 43dbd10046

View File

@ -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);
}
/**