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

Extract retrieval of ShadowList into a method and invert conditions #549

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Mar 3, 2024

Currently the code to work with the ShadowList is quite hard to understand as it references in a quite big block and uses a negated condition with if/else.

This extracts the retrieval of the ShadowList into a method to prevent accidentally using a wrong reference and inverts the condition so there is no negation involved.

This makes is slightly easier to understand whats going on.

@laeubi laeubi requested a review from tjwatson March 3, 2024 07:27
Copy link

github-actions bot commented Mar 3, 2024

Test Results

   28 files  ±0     28 suites  ±0   11m 13s ⏱️ -21s
2 170 tests ±0  2 124 ✅ ±0  46 💤 ±0  0 ❌ ±0 
2 242 runs  ±0  2 196 ✅ ±0  46 💤 ±0  0 ❌ ±0 

Results for commit 0d857bc. ± Comparison against base commit 2d152e2.

♻️ This comment has been updated with latest results.

@laeubi laeubi force-pushed the invert_and_extract branch 2 times, most recently from afc3f0e to 41bb006 Compare March 5, 2024 10:20
@laeubi laeubi requested a review from tjwatson March 5, 2024 10:21
@laeubi
Copy link
Member Author

laeubi commented Mar 6, 2024

@tjwatson any further concerns or can we merge this?

Currently the code to work with the ShadowList is quite hard to
understand as it references in a quite big block and uses a negated
condition with if/else.

This extracts the retrieval of the ShadowList into a method to prevent
accidentally using a wrong reference and inverts the condition so there
is no negation involved.
@laeubi laeubi merged commit f9b6e09 into eclipse-equinox:master Mar 7, 2024
27 of 28 checks passed
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