use is_empty

Signed-off-by: harupy <hkawamura0130@gmail.com>
This commit is contained in:
harupy 2022-09-04 10:33:46 +09:00
parent ad15814811
commit ea801225fc
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ impl Visitor for Checker<'_> {
StmtKind::If { test, .. } => {
if self.settings.select.contains(CheckKind::IfTuple.code()) {
if let ExprKind::Tuple { elts, .. } = &test.node {
if elts.len() > 0 {
if !elts.is_empty() {
self.checks.push(Check {
kind: CheckKind::IfTuple,
location: stmt.location,