mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Renamed explicitConfig to hasExplicitConfig
`hasExplicitConfig` is considered cleaner.
This commit is contained in:
parent
2c1e437f26
commit
c00da1cf09
1 changed files with 2 additions and 2 deletions
|
|
@ -149,7 +149,7 @@ func Run(rpcCfg RPCConfig) error {
|
|||
|
||||
// Parse ini file.
|
||||
loopDir := lncfg.CleanAndExpandPath(config.LoopDir)
|
||||
configFile, explicitConfig := getConfigPath(config, loopDir)
|
||||
configFile, hasExplicitConfig := getConfigPath(config, loopDir)
|
||||
|
||||
if err := flags.IniParse(configFile, &config); err != nil {
|
||||
// File not existing is OK as long as it wasn't specified
|
||||
|
|
@ -158,7 +158,7 @@ func Run(rpcCfg RPCConfig) error {
|
|||
// non-not-found FS errors there's high likelihood that other
|
||||
// operations in data directory would also fail so we treat it
|
||||
// as early detection of a problem.
|
||||
if explicitConfig || !os.IsNotExist(err) {
|
||||
if hasExplicitConfig || !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue