From 86aa352ad9332eb8c6608231b4227cc9406a5fa4 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Thu, 11 Apr 2024 16:08:27 -0400 Subject: [PATCH] Remove leftover commented-out code (#10445) This PR removes some commented-out code that was left over from #10430. Release Notes: - N/A --- crates/extension/src/extension_store.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs index dcac1d1825..a4bdcb215e 100644 --- a/crates/extension/src/extension_store.rs +++ b/crates/extension/src/extension_store.rs @@ -612,17 +612,16 @@ impl ExtensionStore { .and_then(|value| value.to_str().ok()?.parse::().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| {