Skip to content

Commit

Permalink
dbus_api tree: remove unnecessary map_or
Browse files Browse the repository at this point in the history
Signed-off-by: Bryan Gurney <bgurney@redhat.com>
  • Loading branch information
bgurney-rh committed Jan 9, 2025
1 parent 04ca6c7 commit 66d3066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbus_api/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl DbusTreeHandler {
opath
.get_data()
.as_ref()
.map_or(false, |op_cxt| op_cxt.parent == item)
.is_some_and(|op_cxt| op_cxt.parent == item)
}) {
if let StratisUuid::Fs(_) = opath
.get_data()
Expand Down

0 comments on commit 66d3066

Please sign in to comment.