From 3f87685865384bd627109486b18a967f1a02a35b Mon Sep 17 00:00:00 2001 From: siiky Date: Fri, 28 Jun 2024 15:43:36 +0100 Subject: [PATCH] refactor: drop unnecessary use of `_.curry` --- lib/ofac/update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')