Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Nov 7, 2024
1 parent d90c11b commit ec05ea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/seed_tools/utils/legacy_json_to_seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ function preprocessSeedJson(json: any): any {
}

return json;
}
}
6 changes: 3 additions & 3 deletions src/seed_tools/utils/studies_to_seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import {
type Study,
} from '../../proto/generated/study';
import { VariationsSeed } from '../../proto/generated/variations_seed';
import { parseLegacySeedJson } from './legacy_json_to_seed';
import diffStrings from '../utils/diff_strings';
import * as file_utils from '../utils/file_utils';
import * as seed_validation from '../utils/seed_validation';
import * as study_json_utils from '../utils/study_json_utils';
import { parseLegacySeedJson } from './legacy_json_to_seed';

export async function readStudiesToSeed(
studiesDir: string,
Expand Down Expand Up @@ -86,8 +86,8 @@ async function readStudiesAtRevision(
filesWithContent.push({ path: file, content });
}
return await readStudies(filesWithContent, false);
} catch (error) {
console.log(`Failed to read studies ${revision}, use seed.json fallback:`, error);
} catch {
console.log(`Failed to read studies ${revision}, use seed.json fallback:`);
const seedContent = execSync(`git show "${revision}":seed/seed.json`, {
encoding: 'utf8',
});
Expand Down

0 comments on commit ec05ea3

Please sign in to comment.