Refactoring

This commit is contained in:
Kota Kanbe
2017-05-01 19:25:25 +09:00
committed by kota kanbe
parent aafbdcd34d
commit 342a1c6cff
5 changed files with 12 additions and 12 deletions

View File

@@ -170,7 +170,7 @@ func toSlackAttachments(scanResult models.ScanResult) (attaches []*attachment) {
curentPackages := []string{}
for _, p := range cveInfo.Packages {
curentPackages = append(curentPackages, p.ToStringCurrentVersion())
curentPackages = append(curentPackages, p.FormatCurrentVer())
}
for _, n := range cveInfo.CpeNames {
curentPackages = append(curentPackages, n)
@@ -178,7 +178,7 @@ func toSlackAttachments(scanResult models.ScanResult) (attaches []*attachment) {
newPackages := []string{}
for _, p := range cveInfo.Packages {
newPackages = append(newPackages, p.ToStringNewVersion())
newPackages = append(newPackages, p.FormatNewVer())
}
a := attachment{