Skip to content

Commit

Permalink
clean comments
Browse files Browse the repository at this point in the history
  • Loading branch information
samyfodil committed Oct 23, 2024
1 parent a23599c commit dd8d186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/spore-drive/clients/js/src/Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class Service {

data.on("data", (chunk: any) => {
downloadedLength += chunk.length;
progressBar.update(downloadedLength); // Update the cli-progress bar
progressBar.update(downloadedLength);
});

data.pipe(writer);
Expand All @@ -158,8 +158,8 @@ export class Service {
file: tarPath,
C: this.binaryDir,
});
fs.unlinkSync(tarPath); // Remove the tarball after extraction
fs.writeFileSync(this.versionFilePath, version); // Save the version to a file
fs.unlinkSync(tarPath);
fs.writeFileSync(this.versionFilePath, version);
resolve();
});
writer.on("error", (err) => {
Expand Down

0 comments on commit dd8d186

Please # to comment.