Skip to content

Commit

Permalink
Merge pull request #756 from snyk/fix/legal-instructions-parameter-order
Browse files Browse the repository at this point in the history
fix: correct order of parameters in formatIssue
  • Loading branch information
Konstantin Yegupov committed Aug 30, 2019
2 parents 63927b1 + 96bf2d8 commit f93b4d7
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -88,8 +88,9 @@ function constructPatchesText(
basicVulnInfo[id].title,
basicVulnInfo[id].severity,
basicVulnInfo[id].isNew,
basicVulnInfo[id].legalInstructions,
`${basicVulnInfo[id].name}@${basicVulnInfo[id].version}`,
basicVulnInfo[id].legalInstructions);
);
patchedTextArray.push(patchedText + thisPatchFixes);
}

Expand Down Expand Up @@ -120,8 +121,9 @@ function constructUpgradesText(
basicVulnInfo[id].title,
basicVulnInfo[id].severity,
basicVulnInfo[id].isNew,
basicVulnInfo[id].legalInstructions,
`${basicVulnInfo[id].name}@${basicVulnInfo[id].version}`,
basicVulnInfo[id].legalInstructions))
))
.join('\n');
upgradeTextArray.push(upgradeText + thisUpgradeFixes);
}
Expand Down

0 comments on commit f93b4d7

Please sign in to comment.