pluginfw: In-line formatPluginsWithVersion()

There's only one caller of the function, so move the logic to where it
is used.
This commit is contained in:
Richard Hansen 2021-02-03 23:19:21 -05:00 committed by John McLear
parent cd1d322af4
commit 746cc8cc34
2 changed files with 6 additions and 6 deletions

View file

@ -15,11 +15,6 @@ exports.prefix = 'ep_';
exports.formatPlugins = () => Object.keys(defs.plugins).join(', ');
exports.formatPluginsWithVersion = () => Object.values(defs.plugins)
.filter((plugin) => plugin.package.name !== 'ep_etherpad-lite')
.map((plugin) => `${plugin.package.name}@${plugin.package.version}`)
.join(', ');
exports.formatParts = () => defs.parts.map((part) => part.full_name).join('\n');
exports.formatHooks = (hookSetName) => {