Skip to content

Commit 91cf592

Browse files
committed
chore: apply clippy suggestion
1 parent c1ae8bd commit 91cf592

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rust/crd/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,16 +466,14 @@ impl ZookeeperCluster {
466466
"1.", "2.", "3.0.", "3.1.", "3.2.", "3.3.", "3.4.", "3.5.", "3.6.", "3.7.",
467467
];
468468

469-
let framework = if zookeeper_versions_with_log4j
469+
if zookeeper_versions_with_log4j
470470
.into_iter()
471471
.any(|prefix| version.starts_with(prefix))
472472
{
473473
LoggingFramework::LOG4J
474474
} else {
475475
LoggingFramework::LOGBACK
476-
};
477-
478-
framework
476+
}
479477
}
480478

481479
/// The name of the role-level load-balanced Kubernetes `Service`

0 commit comments

Comments
 (0)