Add missing else when checking for linkgraph.db

This commit is contained in:
Michael Crosby 2013-10-23 11:01:17 -07:00 committed by Victor Vieux
parent 0c9b319dd0
commit 7d440f70fd
1 changed files with 2 additions and 1 deletions

View File

@ -600,8 +600,9 @@ func NewRuntimeFromDirectory(config *DaemonConfig) (*Runtime, error) {
if _, err := os.Stat(gographPath); err != nil { if _, err := os.Stat(gographPath); err != nil {
if os.IsNotExist(err) { if os.IsNotExist(err) {
initDatabase = true initDatabase = true
} else {
return nil, err
} }
return nil, err
} }
conn, err := sql.Open("sqlite3", gographPath) conn, err := sql.Open("sqlite3", gographPath)
if err != nil { if err != nil {