From b81f64058cc30225d04afe58ed776e843af1cbdf Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Thu, 13 Jun 2019 21:45:22 +0900 Subject: [PATCH] fix(report): remove extra check logic #802 (#835) --- models/scanresults.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/models/scanresults.go b/models/scanresults.go index 050f672e..1231296e 100644 --- a/models/scanresults.go +++ b/models/scanresults.go @@ -159,8 +159,6 @@ func (r ScanResult) FilterIgnoreCves() ScanResult { if con, ok := s.Containers[r.Container.Name]; ok { ignoreCves = con.IgnoreCves } else { - util.Log.Errorf("%s is not found in config.toml", - r.Container.Name) return r } } else { @@ -212,8 +210,6 @@ func (r ScanResult) FilterIgnorePkgs() ScanResult { if con, ok := s.Containers[r.Container.Name]; ok { ignorePkgsRegexps = con.IgnorePkgsRegexp } else { - util.Log.Errorf("%s is not found in config.toml", - r.Container.Name) return r } } else {