Remove leftover commented-out code (#10445)

This PR removes some commented-out code that was left over from #10430.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-04-11 16:08:27 -04:00 committed by GitHub
parent 253aa28375
commit 86aa352ad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -612,17 +612,16 @@ impl ExtensionStore {
.and_then(|value| value.to_str().ok()?.parse::<usize>().ok());
let mut body = BufReader::new(response.body_mut());
let mut tgz_bytes = Vec::new();
body.read_to_end(&mut tgz_bytes).await?;
let mut tar_gz_bytes = Vec::new();
body.read_to_end(&mut tar_gz_bytes).await?;
if let Some(content_length) = content_length {
let actual_len = tgz_bytes.len();
let actual_len = tar_gz_bytes.len();
if content_length != actual_len {
bail!("downloaded extension size {actual_len} does not match content length {content_length}");
}
}
let decompressed_bytes = GzipDecoder::new(BufReader::new(tgz_bytes.as_slice()));
// let decompressed_bytes = GzipDecoder::new(BufReader::new(tgz_bytes));
let decompressed_bytes = GzipDecoder::new(BufReader::new(tar_gz_bytes.as_slice()));
let archive = Archive::new(decompressed_bytes);
archive.unpack(extension_dir).await?;
this.update(&mut cx, |this, cx| {