Skip to content

Commit

Permalink
fix-code-notes
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Oct 22, 2024
1 parent bb42d43 commit e6e469b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/multisource.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/multisource.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/multisource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,10 @@ const MultiSource: Plugin = (jsonic: Jsonic, popts: MultiSourceOptions) => {
let res = resolver(spec, popts, rule, ctx, jsonic)
// console.log('RES', res)

if (!res.found) {
if (null == res || !res.found) {
return rule.parent?.o0.bad('multisource_not_found', {
...res,
searchstr: (res?.search || [res.full]).join('\n'),
...(res || {}),
searchstr: (res?.search || [res?.full]).join('\n'),
})
}

Expand Down

0 comments on commit e6e469b

Please sign in to comment.