mirror of
https://github.com/actions/labeler.git
synced 2025-12-17 07:32:20 +00:00
Refactor error handling in getPullRequests to simplify catch block
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user