Skip to content

Commit

Permalink
Ensure that ronin diff works without a custom path (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
colodenn authored Jan 24, 2025
1 parent 43c4b7e commit 749ee00
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/commands/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ export default async (
): Promise<void> => {
let status: Status = 'readingConfig';
spinner.text = 'Reading configuration';
const modelsInCodePath = path.join(
process.cwd(),
positionals[positionals.indexOf('diff') + 1],
);
const modelsInCodePath =
positionals[positionals.indexOf('diff') + 1] &&
path.join(process.cwd(), positionals[positionals.indexOf('diff') + 1]);

const db = await initializeDatabase();

Expand Down

0 comments on commit 749ee00

Please sign in to comment.