From 890e4f98549e7d88c6df73c30c2a28de9b404f0f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 23 Nov 2022 17:57:28 +0000 Subject: [PATCH] DEV: Update `namespaceModules` argument name (#19166) In 1279966f we started namespacing modules based on the plugin's defined name rather than the directory name. This commit updates the argument name to match what we're passing in. This it just a readability change - there is no change in behaviour. --- app/assets/javascripts/discourse-plugins/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse-plugins/index.js b/app/assets/javascripts/discourse-plugins/index.js index 74fea7f45f3..0b68baac3d1 100644 --- a/app/assets/javascripts/discourse-plugins/index.js +++ b/app/assets/javascripts/discourse-plugins/index.js @@ -56,10 +56,10 @@ function unColocateConnectors(tree) { }); } -function namespaceModules(tree, pluginDirectoryName) { +function namespaceModules(tree, pluginName) { return new Funnel(tree, { getDestinationPath: function (relativePath) { - return `discourse/plugins/${pluginDirectoryName}/${relativePath}`; + return `discourse/plugins/${pluginName}/${relativePath}`; }, }); }