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 unnecessary loop in trigger() #5

Merged
merged 1 commit into from
Dec 15, 2019

Conversation

lfos
Copy link
Contributor

@lfos lfos commented Dec 15, 2019

In commit 9ddc9f8 (Simplify trigger code, 2019-12-14), the trigger() function was simplified by removing an unneeded variable. On second thought, the whole loop seems unnecessary and can be replaced it with a simple dictionary lookup.

While at it, also add a log error message when bailing out on an invalid phase name.

In commit 9ddc9f8 (Simplify trigger code, 2019-12-14), the trigger()
function was simplified by removing an unneeded variable. On second
thought, the whole loop seems unnecessary and can be replaced it with a
simple dictionary lookup.

While at it, also add a log error message when bailing out on an invalid
phase name.
@poolpOrg poolpOrg merged commit 55fb112 into poolpOrg:master Dec 15, 2019
@poolpOrg
Copy link
Owner

Merged thanks !

@lfos lfos deleted the optimize-tigger branch December 18, 2019 19:26
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.

2 participants