refactor: drop unnecessary use of _.curry

This commit is contained in:
siiky 2024-06-28 15:43:36 +01:00
parent 0d94c2e589
commit 3f87685865

View file

@ -56,7 +56,7 @@ const promiseGetEtag = ({ url }) =>
request.end()
})
const download = _.curry((dstDir, { name, url }) => {
const download = (dstDir, { name, url }) => {
const dstFile = path.join(dstDir, name + '.xml')
const file = fs.createWriteStream(dstFile)
@ -68,7 +68,7 @@ const download = _.curry((dstDir, { name, url }) => {
request.on('error', reject)
})
})
}
const parseToJson = srcFile => {
const dstFile = srcFile.replace(/\.xml$/, '.json')