Skip to content

Commit 1194da6

Browse files
committed
fix: remove docker analyzer progress bar
1 parent 2fc64e8 commit 1194da6

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

lib/fetch-snyk-docker-analyzer.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,7 @@ function fetch() {
5656
return;
5757
}
5858

59-
if (ciInfo.isCI) {
60-
console.log(`downloading ${getBinaryName()} ...`);
61-
} else {
62-
const total = parseInt(res.headers['content-length'], 10);
63-
bar = new ProgressBar(`downloading ${getBinaryName()} [:bar] :rate/Kbps :percent :etas remaining`, { // jscs:ignore maximumLineLength
64-
complete: '=',
65-
incomplete: '.',
66-
width: 20,
67-
total: total / 1000,
68-
});
69-
}
70-
})
71-
.on('data', function (chunk) {
72-
if (bar) {
73-
bar.tick(chunk.length / 1000);
74-
}
59+
console.log(`downloading ${getBinaryName()} ...`);
7560
})
7661
.on('error', function (err) {
7762
reject(err);
@@ -82,6 +67,7 @@ function fetch() {
8267
reject(err);
8368
})
8469
.on('finish', function () {
70+
console.log(`finished ${getBinaryName()} ...`);
8571
fs.renameSync(localPath + '.part', localPath);
8672
const CHMOD_WITH_EXEC = 0755;
8773
fs.chmodSync(localPath, CHMOD_WITH_EXEC);

0 commit comments

Comments
 (0)