refactor(gost): Duplicate code into function (#1110)

* refactor(gost): Duplicate code into function

* fix
This commit is contained in:
Kota Kanbe
2020-12-30 08:33:30 +09:00
committed by GitHub
parent aceb3f1826
commit 8405e0fad6
2 changed files with 84 additions and 110 deletions

View File

@@ -19,7 +19,7 @@ type Base struct {
// FillCVEsWithRedHat fills cve information that has in Gost
func (b Base) FillCVEsWithRedHat(driver db.DB, r *models.ScanResult) error {
return RedHat{}.fillFixed(driver, r)
return RedHat{}.fillCvesWithRedHatAPI(driver, r)
}
// CheckHTTPHealth do health check