Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Dec 13, 2021
1 parent d1a956d commit b0f7328
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,10 @@ pub fn main() -> Result<()> {
object_cache_size_in_bytes: object_cache_size_mb.unwrap_or(0) * 1_000_000,
statistics: if statistics { Some(format) } else { None },
out,
expansion: expansion.unwrap_or_else(|| {
if has_tips {
core::pack::create::ObjectExpansion::TreeTraversal
} else {
core::pack::create::ObjectExpansion::None
}
expansion: expansion.unwrap_or(if has_tips {
core::pack::create::ObjectExpansion::TreeTraversal
} else {
core::pack::create::ObjectExpansion::None
}),
};
let progress = git_features::progress::DoOrDiscard::from(progress);
Expand Down

0 comments on commit b0f7328

Please sign in to comment.