We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug リストが空かどうか判定するif文で、以下のように長さが0かどうか判定する部分が複数ある。
if len(consumer_types) > 0:
if len(consumer_types) == 0:
リストが空かどうか判定するにはnotを付けるだけよいため、一旦長さを取得する上記の方法は非効率だと考えられる。
if consumer_types:
if not consumer_types:
To Reproduce
Reproducibility
Expected behavior
Screenshots or Logs
Environment
Additional context
The text was updated successfully, but these errors were encountered:
Nobu19800
No branches or pull requests
Describe the bug
リストが空かどうか判定するif文で、以下のように長さが0かどうか判定する部分が複数ある。
リストが空かどうか判定するにはnotを付けるだけよいため、一旦長さを取得する上記の方法は非効率だと考えられる。
To Reproduce
Reproducibility
Expected behavior
Screenshots or Logs
Environment
Additional context
The text was updated successfully, but these errors were encountered: