1
0
mirror of https://github.com/actions/setup-node synced 2025-05-17 21:37:47 +00:00
setup-node/node_modules/p-try/index.js
eric sciple 422b9fdb15 .
2020-01-24 12:21:24 -05: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;