mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-19 12:16:30 +00:00
Add missing else when checking for linkgraph.db
This commit is contained in:
committed by
Victor Vieux
parent
0c9b319dd0
commit
7d440f70fd
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user