Skip to content

Commit 2dc254d

Browse files
committed
chore(operator): Fix clippy::collapsible-else-if lint
1 parent bba6907 commit 2dc254d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

crates/stackable-operator/src/commons/product_image_selection.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,10 @@ impl ProductImage {
239239
"operator is built by pull request, using dev build of product image"
240240
);
241241
(override_version, PullPolicy::default())
242+
} else if *auto_update {
243+
(operator_version.floating(), PullPolicy::Always)
242244
} else {
243-
if *auto_update {
244-
(operator_version.floating(), PullPolicy::Always)
245-
} else {
246-
(operator_version.to_string(), PullPolicy::default())
247-
}
245+
(operator_version.to_string(), PullPolicy::default())
248246
}
249247
}
250248
};

0 commit comments

Comments
 (0)