Skip to content

Commit

Permalink
Fix Windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Oct 5, 2024
1 parent 51d6cfa commit c309c9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ pub fn download_extract_sans_parent(

let response_with_pb = pb.wrap_read(DataReaderWrap(reader));

let tar = GzDecoder::new(response_with_pb);
let archive = Archive::new(tar);
unpack_sans_parent(archive, target_path, levels_to_skip)
unpack_sans_parent(response_with_pb, target_path, levels_to_skip)
.with_context(|| format!("Failed to extract downloaded file from url `{}`.", url))?;

Ok(last_modified)
Expand Down

0 comments on commit c309c9e

Please sign in to comment.