fix(tui): enable to exec tui mode without cve.sqlite3 (#904)

This commit is contained in:
Kota Kanbe
2019-09-12 18:35:21 +09:00
committed by GitHub
parent c61f462948
commit b2c105adbc

View File

@@ -315,11 +315,6 @@ func (c Config) ValidateOnTui() bool {
if err := validateDB("cvedb", c.CveDict.Type, c.CveDict.SQLite3Path, c.CveDict.URL); err != nil {
errs = append(errs, err)
}
if c.CveDict.Type == "sqlite3" {
if _, err := os.Stat(c.CveDict.SQLite3Path); os.IsNotExist(err) {
errs = append(errs, xerrors.Errorf("SQLite3 DB path (%s) is not exist: %s", "cvedb", c.CveDict.SQLite3Path))
}
}
for _, err := range errs {
log.Error(err)