Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed May 21, 2024
1 parent 308446e commit 1293deb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions modelina-cli/src/helpers/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,13 @@ export async function generateModels(flags: any, document: any, logger: any, lan
const { fileGenerator, fileOptions } = mapper(flags);

if (output) {
const models = await fileGenerator.generateToFiles(
return await fileGenerator.generateToFiles(
document,
output,
{ ...fileOptions, });
return models;
}

const models = await fileGenerator.generateCompleteModels(
return await fileGenerator.generateCompleteModels(
document,
{ ...fileOptions });
return models;
}

0 comments on commit 1293deb

Please sign in to comment.