setup-node/node_modules/@octokit/rest/lib/register-plugin.js

8 lines
219 B
JavaScript
Raw Normal View History

2019-08-06 23:29:44 +01:00
module.exports = registerPlugin
const factory = require('./factory')
function registerPlugin (plugins, pluginFunction) {
return factory(plugins.includes(pluginFunction) ? plugins : plugins.concat(pluginFunction))
}