mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-13 21:20:18 +00:00
appease the linting gods
This commit is contained in:
parent
ad0c25f68b
commit
e8235072ea
1 changed files with 5 additions and 1 deletions
|
|
@ -332,7 +332,11 @@ async function runQuestions() {
|
|||
options.fetcher = answers.fetcher;
|
||||
options.sourceId = answers.source;
|
||||
|
||||
const source = sources.find(({ id }) => id === answers.source)!;
|
||||
const source = sources.find(({ id }) => id === answers.source);
|
||||
|
||||
if (!source) {
|
||||
throw new Error(`No source with ID ${answers.source} found`);
|
||||
}
|
||||
|
||||
if (source.type === 'embed') {
|
||||
const sourceAnswers = await prompt<EmbedSourceAnswers>([
|
||||
|
|
|
|||
Loading…
Reference in a new issue