mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 08:31:57 +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.fetcher = answers.fetcher;
|
||||||
options.sourceId = answers.source;
|
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') {
|
if (source.type === 'embed') {
|
||||||
const sourceAnswers = await prompt<EmbedSourceAnswers>([
|
const sourceAnswers = await prompt<EmbedSourceAnswers>([
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue