Skip to content

Commit

Permalink
chore(release): prepare for 25.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Jan 10, 2025
1 parent c119552 commit 1c4e712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions core/src/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,10 @@ impl Entry {
}| {
match data {
SystemDataType::Environment(var_name) => std::env::var(var_name)
.map_or(false, |var| values.contains(&var) == *matches),
.is_ok_and(|var| values.contains(&var) == *matches),
SystemDataType::File(path) => {
std::fs::read_to_string(path).map_or(false, |data| {
values
.iter()
.any(|matching_value| data.contains(matching_value))
== *matches
std::fs::read_to_string(path).is_ok_and(|data| {
values.iter().all(|matching| data.contains(matching)) == *matches
})
}
SystemDataType::CommandExists => values
Expand Down
2 changes: 1 addition & 1 deletion tui/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ impl AppState {
self.filter
.item_list()
.get(selected_index)
.map_or(false, |item| item.has_children)
.is_some_and(|i| i.has_children)
}

pub fn selected_item_is_cmd(&self) -> bool {
Expand Down

0 comments on commit 1c4e712

Please sign in to comment.