refactor: prefer filter shorter form
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ async function getTags(execaOpts) {
|
|||||||
return (await execa.stdout('git', ['tag'], execaOpts))
|
return (await execa.stdout('git', ['tag'], execaOpts))
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.map(tag => tag.trim())
|
.map(tag => tag.trim())
|
||||||
.filter(tag => Boolean(tag));
|
.filter(Boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user