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

refactor: Unwrap a one-liner #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

refactor: Unwrap a one-liner #301

wants to merge 1 commit into from

Conversation

shpaass
Copy link
Owner

@shpaass shpaass commented Sep 20, 2024

The idea was to make this part of code more readable. For this, the following steps were taken:

  1. Split booleans into one equality or expression per boolean.
  2. Explain with local names what the boolean conditions check.
  3. Put on-select actions as a local function too.
  4. Align parameters Google-style.

I also added blank lines around some code blocks.

QA: tested on a pY project that the corresponding window selects and deselects things as usual.

This ticket is a part of #256. It doesn't fix it, but it works towards addressing it.

The idea was to make this part of code more readable.
For this, the following steps were taken:
1. Split booleans into one equality or expression per boolean.
2. Explain with local names what the boolean conditions check.
3. Put on-select actions as a local function too.
4. Align parameters Google-style.

QA: tested on a pY project that the corresponding window selects
and deselects things as usual.
@shpaass shpaass changed the title refactor: unwrap a one-liner refactor: Unwrap a one-liner Sep 25, 2024
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.

1 participant