Skip to content

Commit

Permalink
chore: merge pull request #31 from websublime/fix/change-exist-any-to…
Browse files Browse the repository at this point in the history
…-all

fix: change_exist iter was using any, changed to all
  • Loading branch information
miguelramos authored Aug 7, 2024
2 parents 735bf23 + 41de776 commit af59dee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "workspace-node-tools"
version = "1.0.15"
version = "1.0.16"
edition = "2021"
description = "Node workspace version tools"
repository = "https://github.com/websublime/workspace-node-tools"
Expand Down
4 changes: 2 additions & 2 deletions src/changes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ pub fn change_exist(branch: String, packages_name: Vec<String>, cwd: Option<Stri
if changes.changes.contains_key(&branch) {
let branch_changes = changes.changes.get(&branch).unwrap();

return branch_changes.iter().any(|change| {
return branch_changes.iter().all(|change| {
packages_name
.iter()
.any(|package_name| change.package == *package_name)
.all(|package_name| change.package == *package_name)
});
}
}
Expand Down

0 comments on commit af59dee

Please sign in to comment.