Skip to content

Commit 59c9f3f

Browse files
razvanmaltesander
andauthored
Update rust/operator-binary/src/crd/mod.rs
Co-authored-by: Malte Sander <contact@maltesander.com>
1 parent 04d0ef3 commit 59c9f3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rust/operator-binary/src/crd

rust/operator-binary/src/crd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ impl v1alpha1::KafkaCluster {
291291
};
292292

293293
// If no specific role is requested, or the current role matches the requested one, add pod descriptors
294-
if requested_kafka_role.is_none() || &current_role == requested_kafka_role.unwrap()
294+
if requested_kafka_role.is_none() || Some(&current_role) == requested_kafka_role {
295295
{
296296
for replica in 0..replicas {
297297
pod_descriptors.push(KafkaPodDescriptor {

0 commit comments

Comments
 (0)