Skip to content

Commit

Permalink
Improve a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Sep 2, 2023
1 parent cd1971a commit 9147b55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions denops/ddu/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,39 +74,39 @@ export class Loader {
}

getUi(index: string, name: string): BaseUi<BaseUiParams> | null {
const mod = this.mods["ui"][name];
const mod = this.mods.ui[name];
if (!mod) {
return null;
}

return this.getExtension(index).getUi(mod, name);
}
getSource(index: string, name: string): BaseSource<BaseSourceParams> | null {
const mod = this.mods["source"][name];
const mod = this.mods.source[name];
if (!mod) {
return null;
}

return this.getExtension(index).getSource(mod, name);
}
getFilter(index: string, name: string): BaseFilter<BaseFilterParams> | null {
const mod = this.mods["filter"][name];
const mod = this.mods.filter[name];
if (!mod) {
return null;
}

return this.getExtension(index).getFilter(mod, name);
}
getKind(index: string, name: string): BaseKind<BaseKindParams> | null {
const mod = this.mods["kind"][name];
const mod = this.mods.kind[name];
if (!mod) {
return null;
}

return this.getExtension(index).getKind(mod, name);
}
getColumn(index: string, name: string): BaseColumn<BaseColumnParams> | null {
const mod = this.mods["column"][name];
const mod = this.mods.column[name];
if (!mod) {
return null;
}
Expand Down

0 comments on commit 9147b55

Please sign in to comment.