Skip to content

Commit

Permalink
Fix kind check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 22, 2023
1 parent 27dedf0 commit f5ea0cd
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions denops/ddu/ddu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,6 @@ export class Ddu {
}

const kindName = kinds[0];
if (kindName === "base") {
// Dummy kind
return null;
}

const kind = await this.getKind(denops, kindName);
if (!kind) {
return null;
Expand Down Expand Up @@ -1541,10 +1536,12 @@ export class Ddu {

const kind = this.loader.getKind(name);
if (!kind) {
await denops.call(
"ddu#util#print_error",
`Not found kind: ${name}`,
);
if (name !== "base") {
await denops.call(
"ddu#util#print_error",
`Not found kind: ${name}`,
);
}
return undefined;
}

Expand Down

0 comments on commit f5ea0cd

Please sign in to comment.