mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
Cleanup code to list plugins
This commit is contained in:
@@ -147,8 +147,9 @@ function listPlugins(book) {
|
||||
listInstalled(book.root),
|
||||
book.isLanguageBook()? listInstalled(book.parent.root) : Promise([])
|
||||
])
|
||||
.spread(function(defaultPlugins, plugins) {
|
||||
.spread(function() {
|
||||
var args = _.toArray(arguments);
|
||||
|
||||
var results = _.reduce(args, function(out, a) {
|
||||
return out.concat(a);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user