Skip to content

Commit 50ded42

Browse files
committed
chore(operator): Make clippy happy
1 parent 83531c7 commit 50ded42

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ pub enum PullPolicy {
152152
impl PullPolicy {
153153
/// Returns the appropriate [`PullPolicy`] based on if a floating tag is used.
154154
fn from_is_floating_tag(is_floating_tag: bool) -> Self {
155-
match is_floating_tag {
156-
true => Self::Always,
157-
false => Self::IfNotPresent,
155+
if is_floating_tag {
156+
Self::Always
157+
} else {
158+
Self::IfNotPresent
158159
}
159160
}
160161
}

0 commit comments

Comments
 (0)