Skip to content

Commit

Permalink
Merge pull request #10 from snyk/feat/dont-add-from-arrays
Browse files Browse the repository at this point in the history
Feat: dont add from arrays
  • Loading branch information
michael-go authored Apr 29, 2018
2 parents 15a56b9 + 83afd38 commit 2fc64e8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5,129 deletions.
5 changes: 0 additions & 5 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function convertDependecies(targetImage, scanResults) {
root = {};
root.name = imageName;
root.version = imageVersion;
root.from = [imageName + '@' + imageVersion];

var scanResult = scanResults.filter(function (res) {
return res.Analysis && res.Analysis.length > 0;
Expand Down Expand Up @@ -103,10 +102,6 @@ function convertDependecies(targetImage, scanResults) {
name: name,
version: version,
dependencies: {},
from: [
root['from'][0],
name + '@' + version,
],
}
return acc;
}, {});
Expand Down
Loading

0 comments on commit 2fc64e8

Please sign in to comment.