lnd+config: Move to FileExists function in lnrpc package

This commit is contained in:
Orbital
2022-12-02 21:32:30 -06:00
parent c0f44a17b7
commit 21816d9118
3 changed files with 10 additions and 20 deletions

View File

@@ -700,7 +700,7 @@ func LoadConfig(interceptor signal.Interceptor) (*Config, error) {
// User did specify an explicit --configfile, so we check that it does
// exist under that path to avoid surprises.
case configFilePath != DefaultConfigFile:
if !fileExists(configFilePath) {
if !lnrpc.FileExists(configFilePath) {
return nil, fmt.Errorf("specified config file does "+
"not exist in %s", configFilePath)
}