You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: detector/util.go
+5-5
Original file line number
Diff line number
Diff line change
@@ -130,7 +130,7 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {
130
130
previousCveIDsSet[previousVulnInfo.CveID] =true
131
131
}
132
132
133
-
new:= models.VulnInfos{}
133
+
newer:= models.VulnInfos{}
134
134
updated:= models.VulnInfos{}
135
135
for_, v:=rangecurrent.ScannedCves {
136
136
ifpreviousCveIDsSet[v.CveID] {
@@ -150,17 +150,17 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {
150
150
logging.Log.Debugf("same: %s", v.CveID)
151
151
}
152
152
} else {
153
-
logging.Log.Debugf("new: %s", v.CveID)
153
+
logging.Log.Debugf("newer: %s", v.CveID)
154
154
v.DiffStatus=models.DiffPlus
155
-
new[v.CveID] =v
155
+
newer[v.CveID] =v
156
156
}
157
157
}
158
158
159
-
iflen(updated) ==0&&len(new) ==0 {
159
+
iflen(updated) ==0&&len(newer) ==0 {
160
160
logging.Log.Infof("%s: There are %d vulnerabilities, but no difference between current result and previous one.", current.FormatServerName(), len(current.ScannedCves))
Copy file name to clipboardExpand all lines: reporter/util.go
+5-5
Original file line number
Diff line number
Diff line change
@@ -623,7 +623,7 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {
623
623
previousCveIDsSet[previousVulnInfo.CveID] =true
624
624
}
625
625
626
-
new:= models.VulnInfos{}
626
+
newer:= models.VulnInfos{}
627
627
updated:= models.VulnInfos{}
628
628
for_, v:=rangecurrent.ScannedCves {
629
629
ifpreviousCveIDsSet[v.CveID] {
@@ -643,17 +643,17 @@ func getPlusDiffCves(previous, current models.ScanResult) models.VulnInfos {
643
643
logging.Log.Debugf("same: %s", v.CveID)
644
644
}
645
645
} else {
646
-
logging.Log.Debugf("new: %s", v.CveID)
646
+
logging.Log.Debugf("newer: %s", v.CveID)
647
647
v.DiffStatus=models.DiffPlus
648
-
new[v.CveID] =v
648
+
newer[v.CveID] =v
649
649
}
650
650
}
651
651
652
-
iflen(updated) ==0&&len(new) ==0 {
652
+
iflen(updated) ==0&&len(newer) ==0 {
653
653
logging.Log.Infof("%s: There are %d vulnerabilities, but no difference between current result and previous one.", current.FormatServerName(), len(current.ScannedCves))
0 commit comments