mirror of
https://github.com/fiatjaf/nak.git
synced 2026-10-05 15:18:23 +00:00
lmdb: invert configPath check to flatten setupLocalDatabases.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user