Skip to content

Commit

Permalink
Update src/cli/upgrade.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Hofer-Julian <[email protected]>
  • Loading branch information
ruben-arts and Hofer-Julian authored Nov 15, 2024
1 parent 7db9518 commit e36454a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/cli/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,11 @@ pub async fn execute(args: Args) -> miette::Result<()> {
if let Some(packages) = &args.specs.packages {
if packages.contains(&name.as_normalized().to_string()) {
// If the build contains a wildcard, keep it
nameless_match_spec.build = if let Some(build) = nameless_match_spec.build {
match build {
StringMatcher::Glob(_) | StringMatcher::Regex(_) => Some(build),
_ => None,
}
} else {
None
nameless_match_spec.build = match nameless_match_spec.build {
Some(
build @ StringMatcher::Glob(_) | build @ StringMatcher::Regex(_),
) => Some(build),
_ => None,
};
nameless_match_spec.build_number = None;
nameless_match_spec.md5 = None;
Expand Down

0 comments on commit e36454a

Please sign in to comment.