Add missing else when checking for linkgraph.db
This commit is contained in:
parent
0c9b319dd0
commit
7d440f70fd
1 changed files with 2 additions and 1 deletions
|
@ -600,8 +600,9 @@ func NewRuntimeFromDirectory(config *DaemonConfig) (*Runtime, error) {
|
|||
if _, err := os.Stat(gographPath); err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
initDatabase = true
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
conn, err := sql.Open("sqlite3", gographPath)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue