mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-08 03:57:26 +00:00
simplify conditional logic
This commit is contained in:
parent
ccab10f482
commit
5694bb02fe
1 changed files with 1 additions and 5 deletions
|
|
@ -32,11 +32,7 @@ const getGitService = (): string => {
|
|||
|
||||
const isPullRequestFromFork = (): boolean => {
|
||||
core.info(`evenName: ${context.eventName}`);
|
||||
if (
|
||||
['pull_request', 'pull_request_target'].every(
|
||||
(event) => event !== context.eventName,
|
||||
)
|
||||
) {
|
||||
if (!['pull_request', 'pull_request_target'].includes(context.eventName)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue