mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
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:
parent
cd1d322af4
commit
746cc8cc34
2 changed files with 6 additions and 6 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue