Skip to content

Commit

Permalink
archive: address clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Hoang Duc Hieu <[email protected]>
  • Loading branch information
hdhoang committed Aug 14, 2024
1 parent 7d262fd commit 43053b5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sync/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,12 @@ impl<'a> Archive<'a> {
.into()
}
_ => {
let tar_gz_dir = asset_name.strip_suffix(".tar.gz");
match tar_gz_dir {
Some(tar_gz_dir) => Some(Archive {
asset_name.strip_suffix(".tar.gz").map(|tar_gz_dir| Archive {
archive_path,
tmp_dir,
exe_name,
archive_type: ArchiveType::TarGz(tar_gz_dir),
}),
None => None,
}
})
}
}
}
Expand Down

0 comments on commit 43053b5

Please sign in to comment.