Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Change empty list checks #700

Open
miyunari opened this issue Jul 28, 2023 · 0 comments
Open

Change empty list checks #700

miyunari opened this issue Jul 28, 2023 · 0 comments

Comments

@miyunari
Copy link
Member

Currently in the Transformer code we check if a list is empty like this::

if arg_files != "none":

In Python, there are more efficient ways of checking whether a list is empty:

if arg_files:

This returns True if there is something in the list, and False if there is nothing.
We should find all the places where we have done this and change them.

@miyunari miyunari changed the title Change list empty check Change empty list checks Jul 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant