Skip to content

Commit

Permalink
Simplify check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 23, 2024
1 parent 9e3689f commit 1ac198c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions denops/dpp/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ export class Dpp {
recordPlugins[plugin.name] = plugin;

if (
plugin.path && await isDirectory(plugin.path) &&
plugin.rtp && await isDirectory(plugin.rtp) &&
await isDirectory(plugin.path) &&
await isDirectory(plugin.rtp) &&
await checkIf(plugin)
) {
availablePlugins[plugin.name] = plugin;
Expand Down Expand Up @@ -475,7 +475,7 @@ export class Dpp {
plugin.merged
)
) {
if (!plugin.path || !await isDirectory(plugin.path)) {
if (!await isDirectory(plugin.path)) {
continue;
}

Expand Down

0 comments on commit 1ac198c

Please sign in to comment.