setup-node/node_modules/@octokit/rest/lib/register-plugin.js
2019-08-05 15:18:52 -04:00

8 lines
219 B
JavaScript

module.exports = registerPlugin
const factory = require('./factory')
function registerPlugin (plugins, pluginFunction) {
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
}