mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-03-02 23:07:33 +08:00
remove NodeConfig check for qclient node commands
This commit is contained in:
parent
df47bcc2d2
commit
b76a6039c7
@ -56,18 +56,7 @@ var NodeCmd = &cobra.Command{
|
||||
NodeUser = userLookup
|
||||
},
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
// These commands handle their own configuration
|
||||
_, err := os.Stat(configDirectory)
|
||||
if os.IsNotExist(err) {
|
||||
fmt.Printf("config directory doesn't exist: %s\n", configDirectory)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
NodeConfig, err = LoadConfig(configDirectory)
|
||||
if err != nil {
|
||||
fmt.Printf("invalid config directory: %s\n", configDirectory)
|
||||
os.Exit(1)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user