diff --git a/lib/ofac/update.js b/lib/ofac/update.js index 39738853..a8a45d5b 100644 --- a/lib/ofac/update.js +++ b/lib/ofac/update.js @@ -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')