Danger/CI: Correctly swallow async errors

This commit is contained in:
Jamie Kyle
2022-12-14 10:13:03 -08:00
committed by GitHub
parent b138774454
commit 624adca360

View File

@@ -15,10 +15,14 @@ function isGitDeletedError(error: unknown) {
); );
} }
async function main() {
try { try {
run(migrateBackboneToRedux(), packageJsonVersionsShouldBePinned()); await run(migrateBackboneToRedux(), packageJsonVersionsShouldBePinned());
} catch (error: unknown) { } catch (error: unknown) {
if (!isGitDeletedError(error)) { if (!isGitDeletedError(error)) {
throw error; throw error;
} }
} }
}
main();