refactor: drop unnecessary use of _.curry
This commit is contained in:
parent
0d94c2e589
commit
3f87685865
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ const promiseGetEtag = ({ url }) =>
|
||||||
request.end()
|
request.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
const download = _.curry((dstDir, { name, url }) => {
|
const download = (dstDir, { name, url }) => {
|
||||||
const dstFile = path.join(dstDir, name + '.xml')
|
const dstFile = path.join(dstDir, name + '.xml')
|
||||||
const file = fs.createWriteStream(dstFile)
|
const file = fs.createWriteStream(dstFile)
|
||||||
|
|
||||||
|
|
@ -68,7 +68,7 @@ const download = _.curry((dstDir, { name, url }) => {
|
||||||
|
|
||||||
request.on('error', reject)
|
request.on('error', reject)
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
|
||||||
const parseToJson = srcFile => {
|
const parseToJson = srcFile => {
|
||||||
const dstFile = srcFile.replace(/\.xml$/, '.json')
|
const dstFile = srcFile.replace(/\.xml$/, '.json')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue