Skip to content

dev: simplify condition in is_account_alive #1190

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

Open
wants to merge 2 commits into
base: forks/prague
Choose a base branch
from

Conversation

enitrat
Copy link
Contributor

@enitrat enitrat commented Apr 11, 2025

What was wrong?

The condition for is_account_alive is strictly equivalent to == EMPTY_ACCOUNT. Thus, for simplicity, I modified it (and ensuring that if the Account model came to change, this would be properly reflected in this function.

@enitrat enitrat changed the base branch from master to forks/prague April 11, 2025 18:50
@enitrat enitrat force-pushed the dev/simplify-is-account-alive branch from ac5904d to 85f5945 Compare April 11, 2025 18:50
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