Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a double check for the existence of a local hook and log when it is missing in debug #2249

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

triarius
Copy link
Contributor

I always have to do a double take when I read this code. But finally
found a reason to remove it! Executor.hasLocalHook calls
Executor.localHookPath, so in this method,
Executor.executeLocalHook, we are calling Executor.localHookPath twice.

This PR removes that and adds some logging to the job logs for when the hook
is not found (in debug mode).

…it is missing in debug

I always have to do a double take when I read this code. But finally
found a reason to remove it! `Executor.hasLocalHook` calls
`Executor.localHookPath`, so in this method,
`Executor.executeLocalHook`, we are calling `Executor.localHookPath` twice.

This PR removes that and adds some logging to the job logs for when the hook
is not found (in debug mode).
@triarius triarius requested a review from a team July 27, 2023 14:26
@triarius triarius merged commit 1bcb5a0 into main Jul 28, 2023
1 check passed
@triarius triarius deleted the pdp-1400-simplify-local-hook-errors branch July 28, 2023 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants