Skip to content

Commit

Permalink
chore: simple
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Jan 21, 2025
1 parent c0bab85 commit 4aa2d9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goup-version/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ impl Version {
let re = Regex::new(&re)?;
Ok(ver
.into_iter()
.filter_map(|v| if re.is_match(&v) { Some(v) } else { None })
.filter_map(|v| re.is_match(&v).then_some(v))
.collect())
}

Expand Down

0 comments on commit 4aa2d9f

Please sign in to comment.