Skip to content

Commit

Permalink
Merge pull request #533 from snyk/chore/remove-unused-code
Browse files Browse the repository at this point in the history
chore: drop console.logs
  • Loading branch information
lili2311 authored May 23, 2019
2 parents 288165d + 028deec commit 856b89d
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/cli/commands/protect/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ function getPatchPrompts(vulns, policy, options) {
// sort by vulnerable package and the largest version
res.sort(sortPatchPrompts);

// console.log(res.map(_ => `${_.name}@${_.version}`));

var copy = {};
var offset = 0;
// mutate our objects so we can try to group them
Expand Down Expand Up @@ -316,7 +314,6 @@ function getPatchPrompts(vulns, policy, options) {
return true;
});

// console.log(res.map(_ => _.grouped));
var prompts = generatePrompt(res, policy, 'p', options);


Expand Down Expand Up @@ -809,7 +806,6 @@ function generatePrompt(vulns, policy, prefix, options) {
// in this case, we always show if the user choses to ignore.
prompts = prompts.reduce(function (acc, curr) {
acc.push(curr);
// console.log(curr.choices[0].value.vuln);
var rule = snykPolicy.getByVuln(policy, curr.choices[0].value.vuln);
var defaultAnswer = 'None given';
if (rule && rule.type === 'ignore') {
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ function parseScenario(source) {
}

vulnerabilities = vulnerabilities.filter(function (vuln) {
// console.log(vuln);
debug('checking new vuln: %s', vuln.id);
var p;
var i;
Expand Down
1 change: 0 additions & 1 deletion src/cli/commands/unpublished/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = function (cwd) {
return spinner(head).then(function () {
return resolve(cwd, {dev: true, disk: true}).then(function (res) {
prune(res, function (p) {
// console.log(p.name, packages.indexOf(p.name) === -1);
return packages.indexOf(p.name) === -1;
});

Expand Down
1 change: 0 additions & 1 deletion src/lib/isolate.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ function instrumentProps(id, key, obj) {
if (type === 'function') {
obj = function instrumented() {
console.log('NOTIFY: %s@%s', key || id, id);
// snyk.notify(key, id);
original.apply(this, arguments);
};
}
Expand Down

0 comments on commit 856b89d

Please sign in to comment.