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.
This commit is contained in:
David Taylor 2022-11-23 17:57:28 +00:00 committed by GitHub
parent 023333a8e5
commit 890e4f9854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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}`;
},
});
}