Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oteffahi committed Sep 3, 2024
1 parent 5c47ab1 commit fefb7d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/zenoh-plugin-storage-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ pub fn strip_prefix(
}

match key_expr.strip_prefix(prefix).as_slice() {
// NOTE: `stripped_key_expr.is_empty()` should be impossible as "" is not a valid key expression
[stripped_key_expr] if !stripped_key_expr.is_empty() => {
OwnedKeyExpr::from_str(stripped_key_expr).map(Some)
}
Expand Down

0 comments on commit fefb7d6

Please sign in to comment.