refactor: prefer filter shorter form
This commit is contained in:
parent
9f5645cfa0
commit
43dbd10046
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user