Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 3, 2024
1 parent fa6bdb6 commit 713725a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion denops/ddc/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ export const main: Entrypoint = (denops: Denops) => {
// Convert to UserSource
const userSource =
options.sources.find((source) =>
(is.Record(source) ? source.name : source) === sourceName
(typeof source === "object" && "name" in source
? source.name
: source) === sourceName
) ?? sourceName;

cbContext.revoke();
Expand Down

0 comments on commit 713725a

Please sign in to comment.