don't locally shadow variable

This commit is contained in:
Cassandra Heart 2024-10-14 16:44:03 -07:00
parent e87ec00c89
commit 048b6459c3
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -102,7 +102,7 @@ var rootCmd = &cobra.Command{
os.Exit(1) os.Exit(1)
} }
NodeConfig, err := config.LoadConfig(configDirectory, "", false) NodeConfig, err = config.LoadConfig(configDirectory, "", false)
if err != nil { if err != nil {
fmt.Printf("invalid config directory: %s\n", configDirectory) fmt.Printf("invalid config directory: %s\n", configDirectory)
os.Exit(1) os.Exit(1)