refactor: prefer filter shorter form

This commit is contained in:
Pierre Vanduynslager
2018-11-19 18:34:16 -05:00
parent 9f5645cfa0
commit 43dbd10046
+1 -1
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);
}
/**