lmdb: invert configPath check to flatten setupLocalDatabases.

This commit is contained in:
Yasuhiro Matsumoto
2026-06-04 09:48:03 +09:00
parent e2f791ab85
commit 06bd1ddb11
+4 -2
View File
@@ -16,7 +16,10 @@ import (
func setupLocalDatabases(c *cli.Command, sys *sdk.System) {
configPath := c.String("config-path")
if configPath != "" {
if configPath == "" {
return
}
hintsPath := filepath.Join(configPath, "outbox/hints")
os.MkdirAll(hintsPath, 0755)
_, err := lmdbh.NewLMDBHints(hintsPath)
@@ -40,4 +43,3 @@ func setupLocalDatabases(c *cli.Command, sys *sdk.System) {
sys.KVStore = kv
}
}
}