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

Wider usage of support function is_empty_string #10

Open
iosonopersia opened this issue Apr 21, 2021 · 0 comments
Open

Wider usage of support function is_empty_string #10

iosonopersia opened this issue Apr 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@iosonopersia
Copy link
Collaborator

A wider usage of the function is_empty_string from support.py could be made across the entire project.

This function replaces this very common pattern when dealing with strings:

# The old:
if string is None or string == '':
    pass

# becomes:
if is_empty_string(string):
    pass

This makes much clearer the semantics of that conditional statement: the intention of the developer is easily and quickly understandable.

@iosonopersia iosonopersia added the enhancement New feature or request label Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant