mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
refactor: Better variable names
This commit is contained in:
parent
374a5e8e7b
commit
f08a660e3f
@ -86,11 +86,11 @@ module.exports = function(config_hash) {
|
||||
config: config,
|
||||
logger: Logger.logger,
|
||||
};
|
||||
const plugins = load_plugins(config, config.middlewares, plugin_params, function(p) {
|
||||
return p.register_middlewares;
|
||||
const plugins = load_plugins(config, config.middlewares, plugin_params, function(plugin) {
|
||||
return plugin.register_middlewares;
|
||||
});
|
||||
plugins.forEach(function(p) {
|
||||
p.register_middlewares(app, auth, storage);
|
||||
plugins.forEach(function(plugin) {
|
||||
plugin.register_middlewares(app, auth, storage);
|
||||
});
|
||||
|
||||
// For npm request
|
||||
|
Loading…
Reference in New Issue
Block a user