Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 21, 2024
1 parent 320e96a commit b9ae7f0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ export class Dpp {
const depends = new Set<string>();
const availablePlugins = Object.values(recordPlugins).filter(async (
plugin,
) => plugin.path && await isDirectory(plugin.path) && await checkIf(plugin));
const nonLazyPlugins = availablePlugins.filter((plugin) =>
!plugin.lazy
) =>
plugin.path && await isDirectory(plugin.path) && await checkIf(plugin)
);
const nonLazyPlugins = availablePlugins.filter((plugin) => !plugin.lazy);
const hookSources = [];
for (const plugin of nonLazyPlugins) {
if (!plugin.rtp || !await isDirectory(plugin.rtp)) {
Expand Down Expand Up @@ -336,12 +336,8 @@ export class Dpp {
}

// Check hook_add for multipleHooks
const availablePluginNames = availablePlugins.map((plugin) =>
plugin.name
);
const nonLazyPluginNames = nonLazyPlugins.map((plugin) =>
plugin.name
);
const availablePluginNames = availablePlugins.map((plugin) => plugin.name);
const nonLazyPluginNames = nonLazyPlugins.map((plugin) => plugin.name);
for (const hooks of multipleHooks) {
if (
hooks.hook_add &&
Expand Down

0 comments on commit b9ae7f0

Please sign in to comment.