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
@@ -24,7 +23,6 @@ impl From<SysdigImageScannerReport> for ImageScanResult {
24
23
})
25
24
.unwrap_or_default();
26
25
27
-
// b) Cumplimiento de políticas
28
26
let is_compliant = report
29
27
.result
30
28
.as_ref()
@@ -33,8 +31,8 @@ impl From<SysdigImageScannerReport> for ImageScanResult {
33
31
.map(|e| e == &PoliciesGlobalEvaluation::Accepted)
34
32
.unwrap_or(false);
35
33
36
-
// c) Por capas
37
-
let layers = layers_for_result(report.result.as_ref().unwrap());
34
+
let scan_result_response = report.result.as_ref().expect("the report must always have a scan result response, this one didn't, which should never happen");
35
+
let layers = layers_for_result(scan_result_response);
38
36
39
37
ImageScanResult{
40
38
vulnerabilities,
@@ -45,54 +43,53 @@ impl From<SysdigImageScannerReport> for ImageScanResult {
0 commit comments