refactor: drop unnecessary curly braces
This commit is contained in:
parent
7c5e269685
commit
6d9bf1fefc
1 changed files with 2 additions and 3 deletions
|
|
@ -37,8 +37,8 @@ const remove = file => {
|
|||
return unlink(file)
|
||||
}
|
||||
|
||||
const promiseGetEtag = ({ url }) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const promiseGetEtag = ({ url }) =>
|
||||
new Promise((resolve, reject) => {
|
||||
const parsed = URL.parse(url)
|
||||
const requestOptions = {
|
||||
hostname: parsed.hostname,
|
||||
|
|
@ -55,7 +55,6 @@ const promiseGetEtag = ({ url }) => {
|
|||
|
||||
request.end()
|
||||
})
|
||||
}
|
||||
|
||||
const download = _.curry((dstDir, source) => {
|
||||
const {name, url: sourceUrl} = source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue