Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Oct 19, 2023
1 parent b38b5eb commit 7a60764
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ export async function migrate(
let highestMigration = 0;
for (const migrationFile of migrationFiles) {
const migrationNumber = parseInt(migrationFile.slice(0, 6), 10);
if (migrationNumber > highestMigration) highestMigration = migrationNumber;
if (migrationNumber > highestMigration) {
highestMigration = migrationNumber;
}
if (latestMigration == null || migrationNumber > latestMigration) {
await runMigration(options, client, migrationFile, migrationNumber);
}
Expand Down

0 comments on commit 7a60764

Please sign in to comment.