From b2c105adbc59c717cb48419187c0d9d764db3dde Mon Sep 17 00:00:00 2001 From: Kota Kanbe Date: Thu, 12 Sep 2019 18:35:21 +0900 Subject: [PATCH] fix(tui): enable to exec tui mode without cve.sqlite3 (#904) --- config/config.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/config.go b/config/config.go index 7c5ec926..3a472259 100644 --- a/config/config.go +++ b/config/config.go @@ -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)