From c18ca202d0f6da954b085c1531320fbc8e947b39 Mon Sep 17 00:00:00 2001 From: rwaldron Date: Wed, 28 Apr 2021 10:57:07 -0400 Subject: [PATCH] promisify.js: remove --- lib/promisify.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 lib/promisify.js diff --git a/lib/promisify.js b/lib/promisify.js deleted file mode 100644 index 8d42fd3..0000000 --- a/lib/promisify.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = function(api) { - return function(...args) { - return new Promise((resolve, reject) => { - args.push((error, result) => { - if (error) { - return reject(error); - } - return resolve(result); - }); - api(...args); - }); - }; -}; -