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