Refactor error handling in getPullRequests to simplify catch block

This commit is contained in:
chiranjib-swain
2025-08-08 15:01:21 +05:30
parent 17d2309bc9
commit 4c08183adf
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export async function* getPullRequests(
pull_number: prNumber
});
prData = result.data;
} catch (error: any) {
} catch {
core.warning(`Could not find pull request #${prNumber}, skipping`);
continue;
}