Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove leftover commented-out code (#10445)

Marshall Bowers86aa352ad933
diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs
index dcac1d1825a..a4bdcb215e3 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::<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| {