mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 16:53:24 +00:00
appease the linting gods
This commit is contained in:
@@ -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>([
|
||||||
|
Reference in New Issue
Block a user