Renamed explicitConfig to hasExplicitConfig

`hasExplicitConfig` is considered cleaner.
pull/413/head
Martin Habovstiak 3 years ago
parent 2c1e437f26
commit c00da1cf09

@ -149,7 +149,7 @@ func Run(rpcCfg RPCConfig) error {
// Parse ini file. // Parse ini file.
loopDir := lncfg.CleanAndExpandPath(config.LoopDir) loopDir := lncfg.CleanAndExpandPath(config.LoopDir)
configFile, explicitConfig := getConfigPath(config, loopDir) configFile, hasExplicitConfig := getConfigPath(config, loopDir)
if err := flags.IniParse(configFile, &config); err != nil { if err := flags.IniParse(configFile, &config); err != nil {
// File not existing is OK as long as it wasn't specified // 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 // non-not-found FS errors there's high likelihood that other
// operations in data directory would also fail so we treat it // operations in data directory would also fail so we treat it
// as early detection of a problem. // as early detection of a problem.
if explicitConfig || !os.IsNotExist(err) { if hasExplicitConfig || !os.IsNotExist(err) {
return err return err
} }
} }

Loading…
Cancel
Save