setup-node/node_modules/p-try/index.js
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00

10 lines
211 B
JavaScript

'use strict';
const pTry = (fn, ...arguments_) => new Promise(resolve => {
resolve(fn(...arguments_));
});
module.exports = pTry;
// TODO: remove this in the next major version
module.exports.default = pTry;